46 lines
1.8 KiB
Diff
46 lines
1.8 KiB
Diff
--- native-tools/CMakeLists.txt 2018-09-06 23:35:18.000000000 +0200
|
|
+++ - 2018-09-28 08:42:55.286878477 +0200
|
|
@@ -27,3 +27,5 @@
|
|
if(HAVE_LIBM)
|
|
target_link_libraries(bsincgen m)
|
|
endif(HAVE_LIBM)
|
|
+
|
|
+export(TARGETS bin2h bsincgen FILE ${CMAKE_BINARY_DIR}/ImportNativeToools.cmake)
|
|
--- CMakeLists.txt 2018-09-06 23:35:18.000000000 +0200
|
|
+++ - 2018-09-28 09:04:44.686306302 +0200
|
|
@@ -1285,18 +1285,11 @@
|
|
SET(NATIVE_BIN_DIR "${OpenAL_BINARY_DIR}/native-tools/")
|
|
FILE(MAKE_DIRECTORY "${NATIVE_BIN_DIR}")
|
|
|
|
+set(IMPORT_EXECUTABLES "native-tools/ImportNativeToools.cmake" CACHE FILEPATH "POINT")
|
|
+INCLUDE(${IMPORT_EXECUTABLES})
|
|
+
|
|
SET(BIN2H_COMMAND "${NATIVE_BIN_DIR}bin2h")
|
|
SET(BSINCGEN_COMMAND "${NATIVE_BIN_DIR}bsincgen")
|
|
-ADD_CUSTOM_COMMAND(OUTPUT "${BIN2H_COMMAND}" "${BSINCGEN_COMMAND}"
|
|
- COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" "${NATIVE_SRC_DIR}"
|
|
- COMMAND ${CMAKE_COMMAND} -E remove "${BIN2H_COMMAND}" "${BSINCGEN_COMMAND}"
|
|
- COMMAND ${CMAKE_COMMAND} --build . --config "Release"
|
|
- WORKING_DIRECTORY "${NATIVE_BIN_DIR}"
|
|
- DEPENDS "${NATIVE_SRC_DIR}CMakeLists.txt"
|
|
- IMPLICIT_DEPENDS C "${NATIVE_SRC_DIR}bin2h.c"
|
|
- C "${NATIVE_SRC_DIR}bsincgen.c"
|
|
- VERBATIM
|
|
-)
|
|
ADD_CUSTOM_TARGET(native-tools
|
|
DEPENDS "${BIN2H_COMMAND}" "${BSINCGEN_COMMAND}"
|
|
VERBATIM
|
|
--- CMakeLists.txt 2018-09-28 09:04:46.096049994 +0200
|
|
+++ - 2018-09-28 09:05:29.775626902 +0200
|
|
@@ -1288,8 +1288,8 @@
|
|
set(IMPORT_EXECUTABLES "native=tools/ImportNativeTools.cmake" CACHE FILEPATH "POINT")
|
|
INCLUDE(${IMPORT_EXECUTABLES})
|
|
|
|
-SET(BIN2H_COMMAND "${NATIVE_BIN_DIR}bin2h")
|
|
-SET(BSINCGEN_COMMAND "${NATIVE_BIN_DIR}bsincgen")
|
|
+SET(BIN2H_COMMAND bin2h)
|
|
+SET(BSINCGEN_COMMAND bsincgen)
|
|
ADD_CUSTOM_TARGET(native-tools
|
|
DEPENDS "${BIN2H_COMMAND}" "${BSINCGEN_COMMAND}"
|
|
VERBATIM
|