mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-08 20:19:04 +03:00
build: removed meson.build
This commit is contained in:
8
.gitignore
vendored
8
.gitignore
vendored
@@ -4,16 +4,8 @@
|
||||
out
|
||||
|
||||
/build
|
||||
/builddir
|
||||
/build-*
|
||||
|
||||
/subprojects/glfw-*
|
||||
/subprojects/imgui-*
|
||||
/subprojects/sdl2-*
|
||||
/subprojects/freetype-*
|
||||
/subprojects/libpng-*
|
||||
/subprojects/packagecache
|
||||
|
||||
*.log
|
||||
*tar.zst
|
||||
*tar.gz
|
||||
|
||||
107
meson.build
107
meson.build
@@ -1,107 +0,0 @@
|
||||
project('clrsync', 'cpp',
|
||||
version : '0.1.0',
|
||||
default_options : [
|
||||
'cpp_std=c++20',
|
||||
'buildtype=debug',
|
||||
],
|
||||
)
|
||||
|
||||
imgui_dep = dependency('imgui-docking',
|
||||
fallback : ['imgui-docking', 'imgui_dep'],
|
||||
default_options : [
|
||||
'default_library=static',
|
||||
'opengl=enabled',
|
||||
'glfw=enabled',
|
||||
]
|
||||
)
|
||||
|
||||
imgui_dep = declare_dependency(
|
||||
compile_args: ['-DIMGUI_ENABLE_FREETYPE'],
|
||||
dependencies: [imgui_dep]
|
||||
)
|
||||
|
||||
glfw_dep = dependency('glfw3', fallback : ['glfw', 'glfw_dep'])
|
||||
gl_dep = dependency('gl')
|
||||
|
||||
freetype_dep = dependency('freetype2')
|
||||
|
||||
inc_dirs = include_directories('src')
|
||||
lib_inc_dirs = include_directories('lib')
|
||||
|
||||
cpp_args = []
|
||||
if host_machine.system() == 'windows'
|
||||
compiler = meson.get_compiler('cpp')
|
||||
if compiler.get_id() == 'msvc'
|
||||
cpp_args += ['/EHsc']
|
||||
endif
|
||||
endif
|
||||
|
||||
core_sources = [
|
||||
'src/core/palette/color.cpp',
|
||||
'src/core/io/toml_file.cpp',
|
||||
'src/core/config/config.cpp',
|
||||
'src/core/utils.cpp',
|
||||
'src/core/version.cpp',
|
||||
'src/core/theme/theme_template.cpp',
|
||||
]
|
||||
|
||||
text_edit_sources = [
|
||||
'lib/color_text_edit/TextEditor.cpp',
|
||||
]
|
||||
|
||||
clrsync_core = static_library(
|
||||
'clrsync_core',
|
||||
core_sources,
|
||||
include_directories : [inc_dirs, lib_inc_dirs],
|
||||
cpp_args : cpp_args,
|
||||
)
|
||||
|
||||
clrsync_core_dep = declare_dependency(
|
||||
link_with : clrsync_core,
|
||||
include_directories : [inc_dirs, lib_inc_dirs],
|
||||
)
|
||||
|
||||
clrsync_cli = executable(
|
||||
'clrsync_cli',
|
||||
'src/cli/main.cpp',
|
||||
include_directories : [inc_dirs, lib_inc_dirs],
|
||||
link_with : clrsync_core,
|
||||
cpp_args : cpp_args,
|
||||
)
|
||||
|
||||
gui_sources = [
|
||||
'src/gui/main.cpp',
|
||||
'src/gui/color_scheme_editor.cpp',
|
||||
'src/gui/template_editor.cpp',
|
||||
'src/gui/palette_controller.cpp',
|
||||
'src/gui/template_controller.cpp',
|
||||
'src/gui/imgui_helpers.cpp',
|
||||
'src/gui/about_window.cpp',
|
||||
'src/gui/settings_window.cpp',
|
||||
'src/gui/font_loader.cpp',
|
||||
]
|
||||
|
||||
clrsync_gui_link_args = []
|
||||
|
||||
fontconfig_dep = dependency('', required : false)
|
||||
if host_machine.system() == 'linux'
|
||||
fontconfig_dep = dependency('fontconfig', required : true)
|
||||
clrsync_gui_link_args += ['-lX11', '-lXrandr', '-lXi']
|
||||
endif
|
||||
|
||||
clrsync_gui = executable(
|
||||
'clrsync_gui',
|
||||
gui_sources,
|
||||
text_edit_sources,
|
||||
include_directories : [inc_dirs, lib_inc_dirs],
|
||||
dependencies : [
|
||||
clrsync_core_dep,
|
||||
imgui_dep,
|
||||
freetype_dep,
|
||||
glfw_dep,
|
||||
gl_dep,
|
||||
fontconfig_dep,
|
||||
],
|
||||
cpp_args : cpp_args,
|
||||
link_args : clrsync_gui_link_args
|
||||
)
|
||||
@@ -1,10 +0,0 @@
|
||||
[wrap-file]
|
||||
directory = freetype-2.14.1
|
||||
source_url = https://download.savannah.gnu.org/releases/freetype/freetype-2.14.1.tar.xz
|
||||
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/freetype2_2.14.1-1/freetype-2.14.1.tar.xz
|
||||
source_filename = freetype-2.14.1.tar.xz
|
||||
source_hash = 32427e8c471ac095853212a37aef816c60b42052d4d9e48230bab3bdf2936ccc
|
||||
wrapdb_version = 2.14.1-1
|
||||
|
||||
[provide]
|
||||
dependency_names = freetype2
|
||||
@@ -1,13 +0,0 @@
|
||||
[wrap-file]
|
||||
directory = glfw-3.4
|
||||
source_url = https://github.com/glfw/glfw/archive/refs/tags/3.4.tar.gz
|
||||
source_filename = glfw-3.4.tar.gz
|
||||
source_hash = c038d34200234d071fae9345bc455e4a8f2f544ab60150765d7704e08f3dac01
|
||||
patch_filename = glfw_3.4-1_patch.zip
|
||||
patch_url = https://wrapdb.mesonbuild.com/v2/glfw_3.4-1/get_patch
|
||||
patch_hash = 58a6a6cdb28195d7f7e6f5de85dff7044d378e49b46bf1d4a9b04c97ed93e6b0
|
||||
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/glfw_3.4-1/glfw-3.4.tar.gz
|
||||
wrapdb_version = 3.4-1
|
||||
|
||||
[provide]
|
||||
glfw3 = glfw_dep
|
||||
@@ -1,2 +0,0 @@
|
||||
[wrap-redirect]
|
||||
filename = freetype-2.14.1/subprojects/libpng.wrap
|
||||
Reference in New Issue
Block a user