Browse Source

Add cflags to pkg-config files.

tags/v1.3.1000
Jonathan Moore Liles 12 years ago
parent
commit
87e9d62e55
6 changed files with 15 additions and 7 deletions
  1. +1
    -1
      ntk.pc.in
  2. +1
    -1
      ntk_gl-uninstalled.pc.in
  3. +1
    -1
      ntk_gl.pc.in
  4. +1
    -1
      ntk_images-uninstalled.pc.in
  5. +1
    -1
      ntk_images.pc.in
  6. +10
    -2
      wscript

+ 1
- 1
ntk.pc.in View File

@@ -10,4 +10,4 @@ Version: @VERSION@
Requires: cairo >= 1.9.0 Requires: cairo >= 1.9.0
Requires.private: x11 xft Requires.private: x11 xft
Libs: -L${libdir} -lntk Libs: -L${libdir} -lntk
Cflags: -I${includedir}/ntk
Cflags: -I${includedir}/ntk @CFLAGS@

+ 1
- 1
ntk_gl-uninstalled.pc.in View File

@@ -5,4 +5,4 @@ Version: @VERSION@
Requires: gl Requires: gl
Libs: @BUILD@/libs/libntk_gl.a Libs: @BUILD@/libs/libntk_gl.a
Libs.private: -lgl Libs.private: -lgl
Cflags: -I@BUILD@/FL
Cflags: -I@BUILD@/FL @CFLAGS@

+ 1
- 1
ntk_gl.pc.in View File

@@ -10,4 +10,4 @@ Version: @VERSION@
Requires: gl Requires: gl
Requires.private: x11 xft Requires.private: x11 xft
Libs: -L${libdir} -lntk -lgl -lntk_gl Libs: -L${libdir} -lntk -lgl -lntk_gl
Cflags: -I${includedir}/ntk
Cflags: -I${includedir}/ntk @CFLAGS@

+ 1
- 1
ntk_images-uninstalled.pc.in View File

@@ -6,4 +6,4 @@ Requires: cairo >= 1.9.0
Requires.private: x11 xft Requires.private: x11 xft
Libs: @BUILD@/libs/libntk_images.a Libs: @BUILD@/libs/libntk_images.a
Libs.private: -lcairo -lxft -lx11 Libs.private: -lcairo -lxft -lx11
Cflags: -I@BUILD@/FL
Cflags: -I@BUILD@/FL @CFLAGS@

+ 1
- 1
ntk_images.pc.in View File

@@ -10,4 +10,4 @@ Version: @VERSION@
Requires: cairo >= 1.9.0 Requires: cairo >= 1.9.0
Requires.private: x11 xft Requires.private: x11 xft
Libs: -L${libdir} -lntk_images -lntk Libs: -L${libdir} -lntk_images -lntk
Cflags: -I${includedir}/ntk
Cflags: -I${includedir}/ntk @CFLAGS@

+ 10
- 2
wscript View File

@@ -26,6 +26,8 @@ out = 'build'
children = [ 'fluid', 'test' ] children = [ 'fluid', 'test' ]
#children = [] #children = []


CFLAGS = [ '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_THREAD_SAFE', '-D_REENTRANT' ]

def options(opt): def options(opt):
opt.load('compiler_c') opt.load('compiler_c')
opt.load('compiler_cxx') opt.load('compiler_cxx')
@@ -44,9 +46,9 @@ def configure(conf):
conf.load('gnu_dirs') conf.load('gnu_dirs')
# conf.load('ntk_fluid') # conf.load('ntk_fluid')
conf.line_just = 52 conf.line_just = 52
conf.env.append_value('CFLAGS',['-Wall'])
conf.env.append_value('CFLAGS', CFLAGS + ['-Wall'])
# conf.env.append_value('CXXFLAGS',['-Wall','-fno-exceptions', '-fno-rtti']) # conf.env.append_value('CXXFLAGS',['-Wall','-fno-exceptions', '-fno-rtti'])
conf.env.append_value('CXXFLAGS',['-Wall'])
conf.env.append_value('CXXFLAGS',CFLAGS + ['-Wall'])


conf.check_cfg(package='x11', uselib_store='X11', args="--cflags --libs", conf.check_cfg(package='x11', uselib_store='X11', args="--cflags --libs",
mandatory=True) mandatory=True)
@@ -445,6 +447,7 @@ src/Fl_Gl_Window.cxx
target = 'ntk.pc', target = 'ntk.pc',
encoding = 'utf8', encoding = 'utf8',
install_path = '${LIBDIR}/pkgconfig', install_path = '${LIBDIR}/pkgconfig',
CFLAGS = string.join( CFLAGS, ' ' ),
VERSION = VERSION, VERSION = VERSION,
PREFIX = bld.env.PREFIX ) PREFIX = bld.env.PREFIX )


@@ -453,6 +456,7 @@ src/Fl_Gl_Window.cxx
target = 'ntk_images.pc', target = 'ntk_images.pc',
encoding = 'utf8', encoding = 'utf8',
install_path = '${LIBDIR}/pkgconfig', install_path = '${LIBDIR}/pkgconfig',
CFLAGS = string.join( CFLAGS, ' ' ),
VERSION = VERSION, VERSION = VERSION,
PREFIX = bld.env.PREFIX ) PREFIX = bld.env.PREFIX )


@@ -461,6 +465,7 @@ src/Fl_Gl_Window.cxx
target = 'ntk_gl.pc', target = 'ntk_gl.pc',
encoding = 'utf8', encoding = 'utf8',
install_path = '${LIBDIR}/pkgconfig', install_path = '${LIBDIR}/pkgconfig',
CFLAGS = string.join( CFLAGS, ' ' ),
VERSION = VERSION, VERSION = VERSION,
PREFIX = bld.env.PREFIX ) PREFIX = bld.env.PREFIX )


@@ -468,6 +473,7 @@ src/Fl_Gl_Window.cxx
source = 'ntk-uninstalled.pc.in', source = 'ntk-uninstalled.pc.in',
target = 'ntk-uninstalled.pc', target = 'ntk-uninstalled.pc',
encoding = 'utf8', encoding = 'utf8',
CFLAGS = string.join( CFLAGS, ' ' ),
VERSION = VERSION, VERSION = VERSION,
BUILD = os.getcwd() + '/' + out ) BUILD = os.getcwd() + '/' + out )


@@ -476,6 +482,7 @@ src/Fl_Gl_Window.cxx
target = 'ntk_images-uninstalled.pc', target = 'ntk_images-uninstalled.pc',
encoding = 'utf8', encoding = 'utf8',
VERSION = VERSION, VERSION = VERSION,
CFLAGS = string.join( CFLAGS, ' ' ),
BUILD = os.getcwd() + '/' + out ) BUILD = os.getcwd() + '/' + out )




@@ -484,6 +491,7 @@ src/Fl_Gl_Window.cxx
target = 'ntk_gl-uninstalled.pc', target = 'ntk_gl-uninstalled.pc',
encoding = 'utf8', encoding = 'utf8',
VERSION = VERSION, VERSION = VERSION,
CFLAGS = string.join( CFLAGS, ' ' ),
BUILD = os.getcwd() + '/' + out ) BUILD = os.getcwd() + '/' + out )


# bld( features = 'subst', # bld( features = 'subst',


Loading…
Cancel
Save