project_files/hwc/rtl/CMakeLists.txt
author sheepluva
Mon, 05 Aug 2019 00:20:45 +0200
changeset 15295 f382ec6dba11
parent 11659 71bdf987e41f
child 15361 5c0479d0ed5b
permissions -rw-r--r--
In hindsight my emscripten-ifdef (70d416a8f63f) is nonsense. As fpcrtl_glShaderSource() would not be defined and lead to compiling issues. So either it's 3 ifdefs (in pas2cRedo, pas2cSystem and misc.c), in order to toggle between fpcrtl_ and the native function, or alternatively have no ifdef for it at all. I'm going with none at all, which means emscripten will compile with the original (const) function prototype, being wrapped by the fpcrtl_ function, same as non-emscripten builds.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7999
bb503cd46516 add a few cmakefiles for c engine and rtl
koda
parents:
diff changeset
     1
9201
bcf2f7798ebb redid FindGLEW in the right way (tm)
koda
parents: 8047
diff changeset
     2
include_directories(${GLEW_INCLUDE_DIR})
8004
da4c6db6ea6b correct includes and clang detection
koda
parents: 7999
diff changeset
     3
8047
25a4daa6473c cleanup headers, remove -I . from rtl lib to save a few warnings
koda
parents: 8029
diff changeset
     4
file(GLOB fpcrtl_src *.c)
25a4daa6473c cleanup headers, remove -I . from rtl lib to save a few warnings
koda
parents: 8029
diff changeset
     5
9254
d5f513019851 rtl always static
koda
parents: 9201
diff changeset
     6
add_library(fpcrtl STATIC ${fpcrtl_src})
7999
bb503cd46516 add a few cmakefiles for c engine and rtl
koda
parents:
diff changeset
     7