forked from sezero/glide
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure the code for better library builds, and improvements to x…
…64 builds
- Loading branch information
1 parent
ca57c3b
commit f0ff8fb
Showing
12 changed files
with
124 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
add_library(cinit | ||
h3cinit.c | ||
) | ||
target_include_directories(cinit PUBLIC .) | ||
target_link_libraries(cinit PUBLIC | ||
fxmisc | ||
h3 | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
add_library(h3 INTERFACE) | ||
target_include_directories(h3 INTERFACE .) | ||
target_link_libraries(h3 INTERFACE | ||
fxmisc | ||
pcilib | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
if(WIN32) | ||
set(MINIHWC_OS_SPECIFIC_SOURCES | ||
win_mode.c | ||
) | ||
else () | ||
set(MINIHWC_OS_SPECIFIC_SOURCES | ||
lin_mode.c | ||
linhwc.c | ||
gpio.c | ||
) | ||
endif() | ||
|
||
if (${BUILD_32BIT}) | ||
# This code is anyway only relevant for Win9x, and can be excluded for x64 builds. | ||
set (MINHWC_ASM_SOURCES ${MINHWC_ASM_SOURCES} | ||
win9x.asm | ||
) | ||
endif() | ||
|
||
add_library(minihwc | ||
${MINHWC_ASM_SOURCES} | ||
${MINIHWC_OS_SPECIFIC_SOURCES} | ||
hwcio.c | ||
gdebug.c | ||
minihwc.c | ||
) | ||
|
||
if (${BUILD_32BIT}) | ||
# 32 bit compilation | ||
target_compile_definitions(minihwc PUBLIC | ||
-DGL_X86 | ||
) | ||
endif() | ||
|
||
if(WIN32) | ||
# Windows-only defines | ||
target_compile_definitions(minihwc PUBLIC | ||
-D__WIN32__ | ||
-DHWC_ACCESS_DDRAW=1 | ||
-DHWC_EXT_INIT=1 | ||
-DHWC_MINIVDD_HACK=1 | ||
) | ||
endif() | ||
|
||
|
||
target_compile_definitions(minihwc PUBLIC | ||
# subsystem | ||
-DH3 | ||
-DH4 | ||
-DFX_GLIDE_H5_CSIM=1 | ||
-DFX_GLIDE_NAPALM=1 | ||
|
||
) | ||
|
||
|
||
target_include_directories(minihwc PUBLIC .) | ||
|
||
target_link_libraries(minihwc PUBLIC fxmisc h3 glide_common) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.