Prefix native systemlibs with /:systemlib
[hiphop-php.git] / CMake / EXTFunctions.cmake
blob0ca9dcd0e8fdf5b32222db36819a5565a19ad226
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)
8         foreach (lib ${ARGN})
9                 list(APPEND HRE_LIBRARIES ${lib})
10         endforeach()
11 endmacro()
13 function(HHVM_ADD_INCLUDES EXTNAME)
14     include_directories(${ARGN})
15 endfunction()
17 macro(HHVM_EXTENSION EXTNAME)
18         foreach (src ${ARGN})
19             list(APPEND CXX_SOURCES "${HRE_CURRENT_EXT_PATH}/${src}")
20     endforeach()
21 endmacro()
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
27 endfunction()
29 function(HHVM_DEFINE EXTNAME)
30         add_definitions(${ARGN})
31 endfunction()