Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make GPU use libepoxy #14

Open
wants to merge 1 commit into
base: gpu
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/subprojects/*
!/subprojects/*.wrap
*.exe
build/*
build/
Expand Down
57 changes: 0 additions & 57 deletions Makefile

This file was deleted.

36 changes: 36 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
project('comet', 'c', default_options: 'default_library=static')

comet_sources = [
'src/comet.c',
'src/cpu.c',
'src/decode.c',
'src/dev.c',
'src/ic.c',
'src/io.c',
'src/mmu.c',
'src/gpu/gpu.c',
'src/gpu/gpu.h',
]

cc = meson.get_compiler('c')

sdl2_dep = dependency('sdl2')
sdl2_image_dep = dependency('SDL2_image')
sdl2_main_dep = cc.find_library('SDL2main')
epoxy_dep = dependency('epoxy')
m_dep = cc.find_library('m')

comet_deps = [sdl2_dep, sdl2_image_dep, sdl2_main_dep, epoxy_dep, m_dep]

if host_machine.system() == 'windows'
ws2_32_dep = cc.find_library('ws2_32')
comet_deps += ws2_32_dep
endif

executable(
'comet',
comet_sources,
dependencies: comet_deps,
win_subsystem: 'windows',
install: true
)
Loading