Skip to content

Commit

Permalink
Build CEF worker only if CEF is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>
  • Loading branch information
jiri-janousek committed Dec 29, 2017
1 parent 0778676 commit dbf0335
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -569,18 +569,19 @@ def build(ctx):
install_path = ctx.env.NUVOLA_LIBDIR,
)

valalib(
target = NUVOLAKIT_CEF_WORKER,
source_dir = 'src/nuvolakit-cef-worker',
packages = "dioriteglib{0} dioritegtk{0} {1} {2} javascriptcoregtk-4.0".format(TARGET_DIORITE, 'valacef', 'valacefgtk'),
uselib = "SOUP DIORITEGLIB DIORITEGTK VALACEF VALACEFGTK JSCORE",
use = [NUVOLAKIT_BASE],
vala_defines = vala_defines,
cflags = ['-DG_LOG_DOMAIN="Nuvola"'],
vapi_dirs = vapi_dirs,
vala_target_glib = TARGET_GLIB,
install_path = ctx.env.NUVOLA_LIBDIR,
)
if ctx.env.have_cef:
valalib(
target = NUVOLAKIT_CEF_WORKER,
source_dir = 'src/nuvolakit-cef-worker',
packages = "dioriteglib{0} dioritegtk{0} {1} {2} javascriptcoregtk-4.0".format(TARGET_DIORITE, 'valacef', 'valacefgtk'),
uselib = "SOUP DIORITEGLIB DIORITEGTK VALACEF VALACEFGTK JSCORE",
use = [NUVOLAKIT_BASE],
vala_defines = vala_defines,
cflags = ['-DG_LOG_DOMAIN="Nuvola"'],
vapi_dirs = vapi_dirs,
vala_target_glib = TARGET_GLIB,
install_path = ctx.env.NUVOLA_LIBDIR,
)

valalib(
target = NUVOLAKIT_TESTS,
Expand Down

0 comments on commit dbf0335

Please sign in to comment.