Browse Source

build: build .lolfx files from automake.

legacy
Sam Hocevar sam 12 years ago
parent
commit
e8c2384d9c
2 changed files with 12 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +11
    -0
      src/Makefile.am

+ 1
- 0
.gitignore View File

@@ -72,3 +72,4 @@ test/math/remez
test/xolotl/xolotl
tools/make-font
# Our data
*.lolfx.cpp

+ 11
- 0
src/Makefile.am View File

@@ -45,8 +45,19 @@ liblol_a_SOURCES = \
debug/fps.cpp debug/fps.h debug/sphere.cpp debug/sphere.h \
debug/record.cpp debug/record.h debug/stats.cpp debug/stats.h \
debug/quad.cpp debug/quad.h
nodist_liblol_a_SOURCES = \
gpu/defaultmaterial.lolfx.cpp \
gpu/emptymaterial.lolfx.cpp
liblol_a_CPPFLAGS = @LOL_CFLAGS@

SUFFIXES = .lolfx
%.lolfx.cpp: %.lolfx
echo "/* This file was autogenerated. DO NOT MODIFY IT. */" > $@.tmp
echo "char const *lolfx_$(notdir $(^:%.lolfx=%)) =" >> $@.tmp
$(SED) 's/"/\\"/g' $^ | $(SED) 's/.*/"&"/' >> $@.tmp
echo ";" >> $@.tmp
mv $@.tmp $@

sdl_sources = \
image/codec/sdl-image.cpp \
platform/sdl/sdlapp.cpp platform/sdl/sdlapp.h \


Loading…
Cancel
Save