Skip to content

Commit

Permalink
Add initial CPPAN project info.
Browse files Browse the repository at this point in the history
  • Loading branch information
egorpugin committed Jul 3, 2016
1 parent 553c069 commit dae9039
Showing 1 changed file with 111 additions and 1 deletion.
112 changes: 111 additions & 1 deletion cppan.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,112 @@
files:
- api/.*\.cpp
- ccmain/.*\.cpp
- ccstruct/.*\.cpp
- ccutil/.*\.cpp
- classify/.*\.cpp
- cube/.*\.cpp
- cutil/.*\.cpp
- dict/.*\.cpp
- neural_networks/runtime/.*\.cpp
- opencl/.*\.cpp
- textord/.*\.cpp
- viewer/.*\.cpp
- wordrec/.*\.cpp

- api/.*\.h
- ccmain/.*\.h
- ccstruct/.*\.h
- ccutil/.*\.h
- classify/.*\.h
- cube/.*\.h
- cutil/.*\.h
- dict/.*\.h
- neural_networks/runtime/.*\.h
- opencl/.*\.h
- textord/.*\.h
- viewer/.*\.h
- wordrec/.*\.h

- vs2010/port/.*

include_directories:
private:
- classify
- cube
- cutil
- dict
- neural_networks/runtime
- opencl
- textord
- vs2010/port
- viewer
- wordrec
public:
- api
- ccmain
- ccstruct
- ccutil

check_function_exists:
- getline
- snprintf

check_include_exists:
- dlfcn.h
- inttypes.h
- limits.h
- malloc.h
- memory.h
- stdbool.h
- stdint.h
- stdlib.h
- strings.h
- string.h
- sys/ipc.h
- sys/shm.h
- sys/stat.h
- sys/types.h
- sys/wait.h
- tiffio.h
- unistd.h
- cairo/cairo-version.h
- CL/cl.h
- OpenCL/cl.h
- pango-1.0/pango/pango-features.h
- unicode/uchar.h

check_type_size:
- long long int
- off_t
- mbstate_t
- wchar_t
- _Bool

pre_sources: |
# dummy config file
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config_auto.h)
endif()
post_sources: |
if (NOT WIN32)
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.cpp")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/gettimeofday.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/mathfix.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.cpp")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strcasestr.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.cpp")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/strtok_r.h")
list(REMOVE_ITEM src "${CMAKE_CURRENT_SOURCE_DIR}/vs2010/port/vcsversion.h")
endif()
options:
any:
definitions:
private: HAVE_CONFIG_H
public: _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
public: USE_STD_NAMESPACE=1
public: WINDLLNAME="tesseract"

dependencies:
pvt.cppan.demo.leptonica: master
pvt.cppan.demo.leptonica: master

3 comments on commit dae9039

@bmvakili
Copy link

@bmvakili bmvakili commented on dae9039 Jul 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @egorpugin, wouldn't these lines cause YAML error?

        definitions:
            public: HAVE_CONFIG_H
            public: _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS=1
            public: USE_STD_NAMESPACE=1
            public: WINDLLNAME="tesseract"

The error resulting will be below:

duplicated mapping key at line 4, column 40:
     ...      public: USE_STD_NAMESPACE=1

See a live example at URI:
http://nodeca.github.io/js-yaml/#yaml=ICAgICAgICBkZWZpbml0aW9uczoKICAgICAgICAgICAgcHJpdmF0ZTogSEFWRV9DT05GSUdfSAogICAgICAgICAgICBwdWJsaWM6IF9TSUxFTkNFX1NUREVYVF9IQVNIX0RFUFJFQ0FUSU9OX1dBUk5JTkdTPTEKICAgICAgICAgICAgcHVibGljOiBVU0VfU1REX05BTUVTUEFDRT0xCiAgICAgICAgICAgIHB1YmxpYzogV0lORExMTkFNRT0idGVzc2VyYWN0Ig==

@egorpugin
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks! I'll fix it.

@egorpugin
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Please, re-download cppan client.
If you're on windows, you can try to run 'cppan --self-upgrade'. This work only if your client is new enough (downloaded today). Check 'cppan -h' for more info.

Please sign in to comment.