Ver código fonte

build: re-add liblolcore dependency tracking to all binary objects.

legacy
Sam Hocevar sam 11 anos atrás
pai
commit
0e1a19f8e6
6 arquivos alterados com 22 adições e 4 exclusões
  1. +6
    -4
      configure.ac
  2. +4
    -0
      test/Makefile.am
  3. +3
    -0
      test/math/Makefile.am
  4. +1
    -0
      test/sandbox/Makefile.am
  5. +1
    -0
      test/xolotl/Makefile.am
  6. +7
    -0
      tutorial/Makefile.am

+ 6
- 4
configure.ac Ver arquivo

@@ -369,18 +369,20 @@ AC_SUBST(UTIL_LIBS)
dnl How to use the Lol Engine outside this tree
LOL_CFLAGS="$LOL_CFLAGS $SDL_CFLAGS $GL_CFLAGS $EGL_CFLAGS $LIBPNG_CFLAGS"
LOL_LIBS="$LOL_LIBS $SDL_LIBS $GL_LIBS $EGL_LIBS $LIBPNG_LIBS $D3D_LIBS"
LOL_DEPENDENCIES="${LOL_DEPENDENCIES} \$(top_builddir)/src/liblolcore.a"
LOL_DEPENDENCIES="${LOL_DEPENDENCIES} \$(top_builddir)/src/bullet/liblolbullet.a"

dnl How to use the Lol Engine inside this tree
AM_CPPFLAGS="${AM_CPPFLAGS} -I\$(top_srcdir)/src"
AM_CPPFLAGS="${AM_CPPFLAGS} -DLOL_SOURCE_SUBDIR=\\\"\$(subdir)\\\""
AM_CPPFLAGS="${AM_CPPFLAGS} $LOL_CFLAGS"
AM_LDFLAGS="${AM_LDFLAGS} \$(top_builddir)/src/liblolcore.a"
AM_LDFLAGS="${AM_LDFLAGS} \$(top_builddir)/src/bullet/liblolbullet.a"
AM_LDFLAGS="${AM_LDFLAGS} $LOL_LIBS"
AM_CPPFLAGS="${AM_CPPFLAGS} ${LOL_CFLAGS}"
AM_LDFLAGS="${AM_LDFLAGS} ${LOL_DEPENDENCIES}"
AM_LDFLAGS="${AM_LDFLAGS} ${LOL_LIBS}"

dnl Extra flags
AC_SUBST(LOL_CFLAGS)
AC_SUBST(LOL_LIBS)
AC_SUBST(LOL_DEPENDENCIES)

AC_SUBST(AM_CFLAGS)
AC_SUBST(AM_CPPFLAGS)


+ 4
- 0
test/Makefile.am Ver arquivo

@@ -23,11 +23,13 @@ testsuite_SOURCES = testsuite.cpp \
unit/array.cpp unit/rotation.cpp unit/string.cpp unit/map.cpp \
unit/color.cpp unit/atomic.cpp
testsuite_CPPFLAGS = $(AM_CPPFLAGS)
testsuite_DEPENDENCIES = @LOL_DEPENDENCIES@

benchsuite_SOURCES = benchsuite.cpp \
benchmark/vector.cpp benchmark/half.cpp benchmark/trig.cpp \
benchmark/real.cpp
benchsuite_CPPFLAGS = $(AM_CPPFLAGS)
benchsuite_DEPENDENCIES = @LOL_DEPENDENCIES@

btphystest_SOURCES = BtPhysTest.cpp BtPhysTest.h PhysicObject.h \
Physics/Src/EasyPhysics.cpp Physics/Include/EasyPhysics.h \
@@ -40,7 +42,9 @@ btphystest_SOURCES = BtPhysTest.cpp BtPhysTest.h PhysicObject.h \
Physics/Include/BulletCharacterController.h
btphystest_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/src/bullet \
-DHAVE_PHYS_USE_BULLET
btphystest_DEPENDENCIES = @LOL_DEPENDENCIES@

meshviewer_SOURCES = MeshViewer.cpp
meshviewer_CPPFLAGS = $(AM_CPPFLAGS)
meshviewer_DEPENDENCIES = @LOL_DEPENDENCIES@


+ 3
- 0
test/math/Makefile.am Ver arquivo

@@ -7,10 +7,13 @@ noinst_PROGRAMS = pi poly remez

pi_SOURCES = pi.cpp
pi_CPPFLAGS = $(AM_CPPFLAGS)
pi_DEPENDENCIES = @LOL_DEPENDENCIES@

poly_SOURCES = poly.cpp
poly_CPPFLAGS = $(AM_CPPFLAGS)
poly_DEPENDENCIES = @LOL_DEPENDENCIES@

remez_SOURCES = remez.cpp
remez_CPPFLAGS = $(AM_CPPFLAGS)
remez_DEPENDENCIES = @LOL_DEPENDENCIES@


+ 1
- 0
test/sandbox/Makefile.am Ver arquivo

@@ -5,4 +5,5 @@ noinst_PROGRAMS = sample

sample_SOURCES = sample.cpp
sample_CPPFLAGS = $(AM_CPPFLAGS)
sample_DEPENDENCIES = @LOL_DEPENDENCIES@


+ 1
- 0
test/xolotl/Makefile.am Ver arquivo

@@ -5,4 +5,5 @@ noinst_PROGRAMS = xolotl

xolotl_SOURCES = xolotl.cpp xolotl.h
xolotl_CPPFLAGS = $(AM_CPPFLAGS)
xolotl_DEPENDENCIES = @LOL_DEPENDENCIES@


+ 7
- 0
tutorial/Makefile.am Ver arquivo

@@ -6,22 +6,29 @@ noinst_PROGRAMS = 01_triangle 02_cube 03_noise 04_texture 05_easymesh \

01_triangle_SOURCES = 01_triangle.cpp 01_triangle.lolfx
01_triangle_CPPFLAGS = $(AM_CPPFLAGS)
01_triangle_DEPENDENCIES = @LOL_DEPENDENCIES@

02_cube_SOURCES = 02_cube.cpp 02_cube.lolfx
02_cube_CPPFLAGS = $(AM_CPPFLAGS)
02_cube_DEPENDENCIES = @LOL_DEPENDENCIES@

03_noise_SOURCES = 03_noise.cpp 03_noise.lolfx
03_noise_CPPFLAGS = $(AM_CPPFLAGS)
03_noise_DEPENDENCIES = @LOL_DEPENDENCIES@

04_texture_SOURCES = 04_texture.cpp 04_texture.lolfx
04_texture_CPPFLAGS = $(AM_CPPFLAGS)
04_texture_DEPENDENCIES = @LOL_DEPENDENCIES@

05_easymesh_SOURCES = 05_easymesh.cpp
05_easymesh_CPPFLAGS = $(AM_CPPFLAGS)
05_easymesh_DEPENDENCIES = @LOL_DEPENDENCIES@

08_fbo_SOURCES = 08_fbo.cpp 08_fbo.lolfx
08_fbo_CPPFLAGS = $(AM_CPPFLAGS)
08_fbo_DEPENDENCIES = @LOL_DEPENDENCIES@

11_fractal_SOURCES = 11_fractal.cpp 11_fractal.lolfx
11_fractal_CPPFLAGS = $(AM_CPPFLAGS)
11_fractal_DEPENDENCIES = @LOL_DEPENDENCIES@


Carregando…
Cancelar
Salvar