mirror of
https://github.com/mlaux/gb6.git
synced 2026-04-21 16:16:56 +00:00
49 lines
909 B
CMake
49 lines
909 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project("Gray Brick")
|
|
|
|
include(add_application.cmake)
|
|
|
|
include_directories(../src ../compiler)
|
|
|
|
add_application("Gray Brick"
|
|
TYPE APPL
|
|
CREATOR MGBE
|
|
../src/dmg.c
|
|
../src/lcd.c
|
|
../src/audio.c
|
|
../src/rom.c
|
|
../src/mbc.c
|
|
../compiler/compiler.c
|
|
../compiler/emitters.c
|
|
../compiler/branches.c
|
|
../compiler/interop.c
|
|
../compiler/flags.c
|
|
../compiler/cb_prefix.c
|
|
../compiler/reg_loads.c
|
|
../compiler/alu.c
|
|
../compiler/instructions.c
|
|
../compiler/stack.c
|
|
arena.c
|
|
cpu_cache.c
|
|
dialogs.c
|
|
debug.c
|
|
dispatcher_asm.c
|
|
jit.c
|
|
input.c
|
|
lcd_mac.c
|
|
cache.c
|
|
audio_mac.c
|
|
emulator.c
|
|
resources.r
|
|
)
|
|
|
|
target_compile_options(Gray_Brick PRIVATE
|
|
-O3
|
|
-ffunction-sections
|
|
-fdata-sections
|
|
)
|
|
|
|
target_link_options(Gray_Brick PRIVATE
|
|
"-Wl,--gc-sections"
|
|
#"-Wl,--print-gc-sections"
|
|
) |