Bläddra i källkod

Allow to build without Bullet Physics.

legacy
Sam Hocevar 6 år sedan
förälder
incheckning
f6c386f560
29 ändrade filer med 47 tillägg och 27 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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>


Laddar…
Avbryt
Spara