1 # Functions/Macros for use when building extensions statically
3 # These functions also exist in CMake/HPHPIZEFunctions.cmake
4 # Their signatures should be kept consistent, though their behavior
5 # will differ slightly.
7 macro(HHVM_LINK_LIBRARIES EXTNAME)
9 list(APPEND HRE_LIBRARIES ${lib})
13 function(HHVM_ADD_INCLUDES EXTNAME)
14 include_directories(${ARGN})
17 macro(HHVM_EXTENSION EXTNAME)
19 list(APPEND CXX_SOURCES "${HRE_CURRENT_EXT_PATH}/${src}")
23 function(HHVM_SYSTEMLIB EXTNAME SOURCE_FILE)
24 # Ignore it, embed_all_systemlibs will pick this up
25 # TODO: Make this cleaner so that we don't embed systemlibs
26 # which aren't going to be used
29 function(HHVM_DEFINE EXTNAME)
30 add_definitions(${ARGN})