Skip to content

Commit

Permalink
Merge pull request #13 from AlexMerritt/master
Browse files Browse the repository at this point in the history
  • Loading branch information
thadk authored Aug 6, 2020
2 parents 56c5991 + c247481 commit 06dcc21
Show file tree
Hide file tree
Showing 9 changed files with 1,298 additions and 167 deletions.
2 changes: 1 addition & 1 deletion anypiab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ endif()
add_executable(${PROJECT_NAME} ${SOURCES})

if(NOT DEFINED ANYPIATEST)
add_compile_definitions("ANYPIAB")
add_definitions(-DANYPIAB)
endif(NOT DEFINED ANYPIATEST)

# On Linux, the order of these libraries matters!
Expand Down
5 changes: 3 additions & 2 deletions anypiajs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ set(SOURCES
"Application.cpp"
"anypiatestdoc.cpp"
"anypiabdoc.cpp"
"PiaCalOutput.cpp"
)

find_package(Boost 1.64.0 REQUIRED COMPONENTS date_time)
Expand All @@ -61,9 +62,9 @@ set(EXPORTED_FUNCTIONS "-s EXPORTED_FUNCTIONS=\"[\

set(EXPORTED_RUNTIME_METHODS "-s EXTRA_EXPORTED_RUNTIME_METHODS=\"['ccall', 'cwrap']\"")

add_compile_definitions("WEB_ASSEMBLY")
add_definitions(-DWEB_ASSEMBLY)

set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS " --bind ${EXPORTED_FUNCTIONS} ${EXPORTED_RUNTIME_METHODS}")
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-s USE_BOOST_HEADERS=1" LINK_FLAGS "-s USE_BOOST_HEADERS=1 --bind ${EXPORTED_FUNCTIONS} ${EXPORTED_RUNTIME_METHODS}")
#set(EMCC_CFLAGS "${EMCC_CFLAGS} ")
#set(EMCC_CFLAGS "${EMCC_CFLAGS} -s EXTRA_EXPORTED_RUNTIME_METHODS=['ccall']")

Expand Down
Loading

0 comments on commit 06dcc21

Please sign in to comment.