Explorar el Código

Allow to build without Bullet Physics.

legacy
Sam Hocevar hace 6 años
padre
commit
f6c386f560
Se han modificado 29 ficheros con 47 adiciones y 27 borrados
  1. +1
    -0
      build.config
  2. +9
    -0
      build/autotools/m4/lol-conf.m4
  3. +2
    -0
      configure.ac
  4. +4
    -1
      doc/samples/Makefile.am
  5. +1
    -1
      doc/samples/benchsuite.vcxproj
  6. +1
    -1
      doc/samples/btphystest.vcxproj
  7. +1
    -1
      doc/samples/meshviewer/meshviewer.vcxproj
  8. +1
    -1
      doc/samples/nacl_phystest.vcxproj
  9. +1
    -1
      doc/tutorial/01_triangle.vcxproj
  10. +1
    -1
      doc/tutorial/02_cube.vcxproj
  11. +1
    -1
      doc/tutorial/03_noise.vcxproj
  12. +1
    -1
      doc/tutorial/04_texture.vcxproj
  13. +1
    -1
      doc/tutorial/05_easymesh.vcxproj
  14. +1
    -1
      doc/tutorial/06_sprite.vcxproj
  15. +1
    -1
      doc/tutorial/07_input.vcxproj
  16. +1
    -1
      doc/tutorial/08_fbo.vcxproj
  17. +1
    -1
      doc/tutorial/11_fractal.vcxproj
  18. +1
    -1
      doc/tutorial/12_voronoi.vcxproj
  19. +1
    -1
      doc/tutorial/13_shader_builder.vcxproj
  20. +1
    -1
      doc/tutorial/14_lol_lua.vcxproj
  21. +1
    -1
      doc/tutorial/15_lolimgui.vcxproj
  22. +4
    -1
      src/3rdparty/Makefile.am
  23. +4
    -2
      src/Makefile.am
  24. +1
    -1
      src/lol-core.vcxproj
  25. +1
    -1
      src/t/test-base.vcxproj
  26. +1
    -1
      src/t/test-entity.vcxproj
  27. +1
    -1
      src/t/test-image.vcxproj
  28. +1
    -1
      src/t/test-math.vcxproj
  29. +1
    -1
      src/t/test-sys.vcxproj

+ 1
- 0
build.config Ver fichero

@@ -3,6 +3,7 @@
<PropertyGroup Label="Configuration">

<!-- yes/no values -->
<enable_bullet>yes</enable_bullet>
<enable_ffmpeg>yes</enable_ffmpeg>
<enable_gl>yes</enable_gl>
<enable_sdl>yes</enable_sdl>


+ 9
- 0
build/autotools/m4/lol-conf.m4 Ver fichero

@@ -81,6 +81,15 @@ if test "$ac_cv_have_getopt_long" != "no"; then
fi


dnl Use Bullet Physics?
ac_cv_my_have_bullet="no"
if test "${enable_bullet}" != "no"; then
ac_cv_my_have_bullet="yes"
AC_DEFINE(LOL_USE_BULLET, 1, Define to 1 to use Bullet Physics)
fi
AM_CONDITIONAL(LOL_USE_BULLET, test "${ac_cv_my_have_bullet}" = "yes")


dnl Use NativeClient?
ac_cv_my_have_nacl="no"
AC_LANG_PUSH(C++)


+ 2
- 0
configure.ac Ver fichero

@@ -90,6 +90,8 @@ AC_ARG_ENABLE(imlib2,
[ --enable-imlib2 build using Imlib2 (default autodetected)])
AC_ARG_ENABLE(png,
[ --enable-png build using libpng (default autodetected)])
AC_ARG_ENABLE(bullet,
[ --enable-bullet build using Bullet Physics (default yes)])

AC_ARG_ENABLE(test,
[ --enable-test build test suite (default yes)])


+ 4
- 1
doc/samples/Makefile.am Ver fichero

@@ -9,7 +9,10 @@ bench: benchsuite$(EXEEXT)
if BUILD_SAMPLES
noinst_PROGRAMS = bluenoise benchsuite simplex
if LOL_USE_GL
noinst_PROGRAMS += btphystest nacl_phystest
noinst_PROGRAMS += nacl_phystest
if LOL_USE_BULLET
noinst_PROGRAMS += btphystest
endif
endif
endif



+ 1
- 1
doc/samples/benchsuite.vcxproj Ver fichero

@@ -41,7 +41,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/samples/btphystest.vcxproj Ver fichero

@@ -51,7 +51,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/samples/meshviewer/meshviewer.vcxproj Ver fichero

@@ -38,7 +38,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-lua.vcxproj">


+ 1
- 1
doc/samples/nacl_phystest.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/01_triangle.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/02_cube.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/03_noise.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/04_texture.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/05_easymesh.vcxproj Ver fichero

@@ -37,7 +37,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-lua.vcxproj">


+ 1
- 1
doc/tutorial/06_sprite.vcxproj Ver fichero

@@ -37,7 +37,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/07_input.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/08_fbo.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/11_fractal.vcxproj Ver fichero

@@ -40,7 +40,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/12_voronoi.vcxproj Ver fichero

@@ -44,7 +44,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/13_shader_builder.vcxproj Ver fichero

@@ -34,7 +34,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
doc/tutorial/14_lol_lua.vcxproj Ver fichero

@@ -34,7 +34,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-lua.vcxproj">


+ 1
- 1
doc/tutorial/15_lolimgui.vcxproj Ver fichero

@@ -34,7 +34,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 4
- 1
src/3rdparty/Makefile.am Ver fichero

@@ -1,7 +1,10 @@

include $(top_srcdir)/build/autotools/common.am

noinst_LIBRARIES = liblol-bullet.a liblol-lua.a
noinst_LIBRARIES = liblol-lua.a
if LOL_USE_BULLET
noinst_LIBRARIES += liblol-bullet.a
endif

# Only remove flags that were actually set, because we don't know
# what the compiler actually accepts.


+ 4
- 2
src/Makefile.am Ver fichero

@@ -26,8 +26,10 @@ liblol_core_a_SOURCES = \
$(sdl_sources) \
$(d3d9_sources) \
$(android_sources)
#liblol_core_a_CPPFLAGS = -include-pch $(srcdir)/lol/engine-internal.h.pch $(AM_CPPFLAGS) -I$(srcdir)/3rdparty/bullet3/src -I$(srcdir)/3rdparty/lua/src
liblol_core_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/3rdparty/bullet3/src -I$(srcdir)/3rdparty/lua/src
liblol_core_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/3rdparty/lua/src
if LOL_USE_BULLET
liblol_core_a_CPPFLAGS += -I$(srcdir)/3rdparty/bullet3/src
endif

liblol_core_headers = \
lol/engine-internal.h lol/engine.h lol/public.h lol/extras.h lol/legacy.h \


+ 1
- 1
src/lol-core.vcxproj Ver fichero

@@ -396,7 +396,7 @@
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
src/t/test-base.vcxproj Ver fichero

@@ -42,7 +42,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
src/t/test-entity.vcxproj Ver fichero

@@ -38,7 +38,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
src/t/test-image.vcxproj Ver fichero

@@ -39,7 +39,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
src/t/test-math.vcxproj Ver fichero

@@ -55,7 +55,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


+ 1
- 1
src/t/test-sys.vcxproj Ver fichero

@@ -38,7 +38,7 @@
<ProjectReference Include="$(LolDir)\src\lol-core.vcxproj">
<Project>{9e62f2fe-3408-4eae-8238-fd84238ceeda}</Project>
</ProjectReference>
<ProjectReference Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<ProjectReference Condition="'$(enable_bullet)'!='no'" Include="$(LolDir)\src\3rdparty\lol-bullet.vcxproj">
<Project>{83d3b207-c601-4025-8f41-01dedc354661}</Project>
</ProjectReference>
</ItemGroup>


Cargando…
Cancelar
Guardar