cmake_modules/CMakePascalCompiler.cmake.in
author sheepluva
Mon, 05 Aug 2019 00:20:45 +0200
changeset 15295 f382ec6dba11
parent 8859 bead90828a94
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:
8859
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
     1
set(CMAKE_Pascal_COMPILER "@CMAKE_Pascal_COMPILER@")
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
     2
set(CMAKE_Pascal_COMPILER_ARG1 "@CMAKE_Pascal_COMPILER_ARG1@")
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
     3
set(CMAKE_Pascal_COMPILER_LOADED 1)
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
     4
set(CMAKE_Pascal_COMPILER_VERSION "@CMAKE_Pascal_COMPILER_VERSION@")
8750
d9e57426e759 barebone cmake config file to support pascal files, based off plplot's ada files
koda
parents:
diff changeset
     5
8859
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
     6
set(CMAKE_Pascal_COMPILER_ENV_VAR "FPC")
8750
d9e57426e759 barebone cmake config file to support pascal files, based off plplot's ada files
koda
parents:
diff changeset
     7
8859
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
     8
set(CMAKE_Pascal_SOURCE_FILE_EXTENSIONS "pas" "pp")
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
     9
set(CMAKE_Pascal_IGNORE_EXTENSIONS ppu;PPU;h;H;o;O;obj;OBJ;def;DEF;rc;RC)
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
    10
set(CMAKE_Pascal_LINKER_PREFERENCE Prefered)
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
    11
set(CMAKE_Pascal_OUTPUT_EXTENSION_REPLACE 1)
bead90828a94 cmake netiquette
koda
parents: 8852
diff changeset
    12
set(CMAKE_Pascal_OUTPUT_EXTENSION ".o")