瀏覽代碼

build: build .lolfx files from automake.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
e8c2384d9c
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. +1
    -0
      .gitignore
  2. +11
    -0
      src/Makefile.am

+ 1
- 0
.gitignore 查看文件

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

+ 11
- 0
src/Makefile.am 查看文件

@@ -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…
取消
儲存