forked from linuxmint/cjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-modules.am
56 lines (47 loc) · 2.45 KB
/
Makefile-modules.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
NATIVE_MODULES = libconsole.la libsystem.la libmodules_resources.la
if ENABLE_CAIRO
NATIVE_MODULES += libcairoNative.la
endif
noinst_LTLIBRARIES += $(NATIVE_MODULES)
libcjs_la_LIBADD += $(NATIVE_MODULES)
JS_NATIVE_MODULE_CFLAGS = \
$(AM_CPPFLAGS) \
-DGJS_COMPILATION \
$(GJS_CFLAGS)
JS_NATIVE_MODULE_LIBADD = \
$(GJS_LIBS)
modules_resource_files = $(shell glib-compile-resources --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/modules/modules.gresource.xml)
modules-resources.h: $(srcdir)/modules/modules.gresource.xml $(modules_resource_files)
$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --sourcedir=$(builddir) --generate --c-name modules_resources $<
modules-resources.c: $(srcdir)/modules/modules.gresource.xml $(modules_resource_files)
$(AM_V_GEN) glib-compile-resources --target=$@ --sourcedir=$(srcdir) --sourcedir=$(builddir) --generate --c-name modules_resources $<
EXTRA_DIST += $(modules_resource_files) $(srcdir)/modules/modules.gresource.xml
nodist_libmodules_resources_la_SOURCES = modules-resources.c modules-resources.h
CLEANFILES += $(nodist_libmodules_resources_la_SOURCES)
libmodules_resources_la_CPPFLAGS = $(JS_NATIVE_MODULE_CFLAGS)
libmodules_resources_la_LIBADD = $(JS_NATIVE_MODULE_LIBADD)
libcairoNative_la_CPPFLAGS = $(JS_NATIVE_MODULE_CFLAGS) $(GJS_CAIRO_CFLAGS)
libcairoNative_la_LIBADD = $(JS_NATIVE_MODULE_LIBADD) $(GJS_CAIRO_LIBS)
libcairoNative_la_SOURCES = \
modules/cairo-private.h \
modules/cairo-module.h \
modules/cairo-context.cpp \
modules/cairo-path.cpp \
modules/cairo-surface.cpp \
modules/cairo-image-surface.cpp \
modules/cairo-ps-surface.cpp \
modules/cairo-pdf-surface.cpp \
modules/cairo-svg-surface.cpp \
modules/cairo-pattern.cpp \
modules/cairo-gradient.cpp \
modules/cairo-linear-gradient.cpp \
modules/cairo-radial-gradient.cpp \
modules/cairo-surface-pattern.cpp \
modules/cairo-solid-pattern.cpp \
modules/cairo.cpp
libsystem_la_CPPFLAGS = $(JS_NATIVE_MODULE_CFLAGS)
libsystem_la_LIBADD = $(JS_NATIVE_MODULE_LIBADD)
libsystem_la_SOURCES = modules/system.h modules/system.cpp
libconsole_la_CPPFLAGS = $(JS_NATIVE_MODULE_CFLAGS)
libconsole_la_LIBADD = $(JS_NATIVE_MODULE_LIBADD) $(READLINE_LIBS)
libconsole_la_SOURCES = modules/console.h modules/console.cpp