[gimp/meson: 36/805] Add libapp
- From: Félix Piédallu <fpiedallu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/meson: 36/805] Add libapp
- Date: Fri, 2 Feb 2018 15:15:48 +0000 (UTC)
commit 81c7c25485c62aede6478e6f655196a701755fef
Author: Félix Piédallu <felix piedallu me>
Date: Thu Nov 9 14:53:56 2017 +0100
Add libapp
app/meson.build | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 104 insertions(+), 2 deletions(-)
---
diff --git a/app/meson.build b/app/meson.build
index 956baf5..f5f5273 100644
--- a/app/meson.build
+++ b/app/meson.build
@@ -25,6 +25,34 @@ app_debug_files = files(
'gimp-log.c',
)
+# Top-level library
+global_cflags = []
+global_lflags = []
+
+global_cflags += [
+ '-DGIMPDIR="'+ gimpdir + '"',
+ '-DGIMP_USER_VERSION="'+ user_version +'"',
+ '-DG_LOG_DOMAIN="Gimp"',
+ '-DGIMP_APP_GLUE_COMPILATION',
+ '-DCC_VERSION="' + cc.version() + '"',
+]
+
+if platform_win32
+ global_cflags += '-no-undefined'
+ global_lflags += '-lgdi32'
+endif
+
+if platform_osx
+ global_cflags += '-xobjective-c'
+ global_lflags += ['-framework', 'Cocoa']
+endif
+
+if os_win32
+ global_lflags += [ '-mwindows', '-mexchndl', ]
+ # global_lflags += ['-export-symbols', 'gimpwidgets.def']
+endif
+
+
gitversion_h1 = vcs_tag(
input : 'git-version.h.in',
output: 'git-version.h.in.1',
@@ -60,6 +88,80 @@ libapp_sources = [
'version.c',
gitversion_h,
]
+
+libapp = static_library('app',
+ libapp_sources,
+ include_directories: [ rootInclude, rootAppInclude, configInclude, ],
+ c_args: global_cflags,
+ dependencies: [
+ gegl, gdk_pixbuf, gtk2,
+ ],
+ link_with: global_lflags,
+
+
+)
+
+
+
+
# Those subdirs need to link againts the first ones
-# subdir('config')
-# subdir('tests')
+subdir('config')
+subdir('tests')
+
+app_links = [
+ libapp,
+ libappactions,
+ libappconfig,
+ libappcore,
+ libappdialogs,
+ libappdialogs,
+ libappdisplay,
+ libappfile,
+ libappgegl,
+ libappgui,
+ libappinternalprocs,
+ libapplayermodes,
+ libapplayermodeslegacy,
+ libappmenus,
+ libappoperations,
+ libapppaint,
+ libapppdb,
+ libappplugin,
+ libapppropgui,
+ libapptext,
+ libapptools,
+ libappvectors,
+ libappwidgets,
+ libappxcf,
+ libgimpbase,
+ libgimpcolor,
+ libgimpconfig,
+ libgimpmath,
+ libgimpmodule,
+ libgimpthumb,
+ libgimpwidgets,
+]
+
+
+# Executables
+
+# xcf/libappxcf.a \
+# pdb/libappinternal-procs.a \
+# pdb/libapppdb.a \
+# plug-in/libappplug-in.a \
+# vectors/libappvectors.a \
+# core/libappcore.a \
+# file/libappfile.a \
+# text/libapptext.a \
+# paint/libapppaint.a \
+# operations/libappoperations.a \
+# operations/layer-modes/libapplayermodes.a \
+# operations/layer-modes-legacy/libapplayermodeslegacy.a \
+# gegl/libappgegl.a \
+# config/libappconfig.a \
+# $(libgimpconfig) \
+# $(libgimpmath) \
+# $(libgimpthumb) \
+# $(libgimpcolor) \
+# $(libgimpmodule) \
+# $(libgimpbase) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]