forked from pyrite-dev/milsko
cmake
This commit is contained in:
parent
47fe57b31c
commit
f8a94b7380
31 changed files with 220 additions and 180 deletions
19
configure
vendored
19
configure
vendored
|
|
@ -46,6 +46,7 @@ param_set("shared", 1);
|
|||
param_set("static", 1);
|
||||
param_set("examples", 1);
|
||||
|
||||
|
||||
my %features = (
|
||||
"classic-theme" => "use classic theme",
|
||||
"stb-image" => "use stb_image, instead use libjpeg/libpng",
|
||||
|
|
@ -131,16 +132,12 @@ foreach my $l (@ARGV) {
|
|||
}
|
||||
}
|
||||
|
||||
if($target ne "Darwin" and $target ne "ClassicMacOS68k" and $target ne "ClassicMacOSPPC") {
|
||||
if($target ne "Darwin" and $target ne "ClassicMacOS") {
|
||||
param_set("freetype2", 1);
|
||||
param_set("stb-truetype", 0);
|
||||
} else {
|
||||
if($target ne "ClassicMacOS68k" and $target ne "ClassicMacOSPPC"){
|
||||
param_set("freetype2", 0);
|
||||
param_set("stb-truetype", 1);
|
||||
} else {
|
||||
param_set("stb-truetype", 0);
|
||||
}
|
||||
param_set("freetype2", 0);
|
||||
param_set("stb-truetype", 0);
|
||||
}
|
||||
|
||||
if($target eq "Linux") {
|
||||
|
|
@ -289,7 +286,7 @@ if (param_get("examples")) {
|
|||
}
|
||||
if (grep(/^cocoa$/, @backends)) {
|
||||
print(OUT
|
||||
" \$(CC) -L./src -I\$\(INCDIR) \$\(LIBDIR) -o ${l} ${s}${object_suffix} -lMw ${math} ${libs}\n"
|
||||
" \$(CC) -L./src \$\(LIBDIR) -o ${l} ${s}${object_suffix} -lMw ${math} ${libs}\n"
|
||||
);
|
||||
}
|
||||
else {
|
||||
|
|
@ -304,16 +301,12 @@ if (param_get("examples")) {
|
|||
print(OUT
|
||||
" Rez -I ".$ENV{RETRO68_TOOLCHAIN_PATH}."/RIncludes ".$ENV{RETRO68_TOOLCHAIN_PATH}."/RIncludes/Retro68APPL.r -DCFRAG_NAME=\"example\" --data ${l}.pef --cc ${l}.dsk -t APPL\n"
|
||||
);
|
||||
}
|
||||
|
||||
print(OUT "${s}${object_suffix}: ${s}.c\n");
|
||||
print(OUT
|
||||
" \$(CC) -c \$\(INCDIR) -o ${s}${object_suffix} ${s}.c -lMw ${math}\n"
|
||||
);
|
||||
|
||||
|
||||
#print(OUT "Rez -I /path/to/Universal/RIncludes /path/to/libretro/RIncludes/Retro68APPL.r -DCFRAG_NAME="\"MyProgram\"" --data program.pef -o program.bin -t APPL");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
print(OUT "\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue