trunk/src/lib/lib.mak
| r243297 | r243298 | |
| 33 | 33 | $(LIBOBJ)/mongoose \ |
| 34 | 34 | $(LIBOBJ)/jsoncpp \ |
| 35 | 35 | $(LIBOBJ)/sqlite3 \ |
| 36 | $(LIBOBJ)/bgfx \ |
| 37 | $(LIBOBJ)/bgfx/common \ |
| 38 | $(LIBOBJ)/bgfx/common/entry \ |
| 39 | $(LIBOBJ)/bgfx/common/font \ |
| 40 | $(LIBOBJ)/bgfx/common/imgui \ |
| 41 | $(LIBOBJ)/bgfx/common/nanovg \ |
| 36 | 42 | |
| 37 | 43 | #------------------------------------------------- |
| 38 | 44 | # utility library objects |
| r243297 | r243298 | |
| 594 | 600 | $(LIBOBJ)/sqlite3/sqlite3.o: $(3RDPARTY)/sqlite3/sqlite3.c | $(OSPREBUILD) |
| 595 | 601 | @echo Compiling $<... |
| 596 | 602 | $(CC) $(CDEFS) $(CONLYFLAGS) -Wno-bad-function-cast -I$(3RDPARTY)/sqlite3 $(SQLITE3_FLAGS) -c $< -o $@ |
| 603 | |
| 604 | #------------------------------------------------- |
| 605 | # BGFX library objects |
| 606 | #------------------------------------------------- |
| 607 | |
| 608 | BGFXOBJS = \ |
| 609 | $(LIBOBJ)/bgfx/bgfx.o \ |
| 610 | $(LIBOBJ)/bgfx/glcontext_egl.o \ |
| 611 | $(LIBOBJ)/bgfx/glcontext_glx.o \ |
| 612 | $(LIBOBJ)/bgfx/glcontext_ppapi.o \ |
| 613 | $(LIBOBJ)/bgfx/glcontext_wgl.o \ |
| 614 | $(LIBOBJ)/bgfx/image.o \ |
| 615 | $(LIBOBJ)/bgfx/renderer_d3d12.o \ |
| 616 | $(LIBOBJ)/bgfx/renderer_d3d11.o \ |
| 617 | $(LIBOBJ)/bgfx/renderer_d3d9.o \ |
| 618 | $(LIBOBJ)/bgfx/renderer_gl.o \ |
| 619 | $(LIBOBJ)/bgfx/renderer_null.o \ |
| 620 | $(LIBOBJ)/bgfx/renderdoc.o \ |
| 621 | $(LIBOBJ)/bgfx/vertexdecl.o \ |
| 622 | $(LIBOBJ)/bgfx/common/bgfx_utils.o \ |
| 623 | $(LIBOBJ)/bgfx/common/bounds.o \ |
| 624 | $(LIBOBJ)/bgfx/common/camera.o \ |
| 625 | $(LIBOBJ)/bgfx/common/cube_atlas.o \ |
| 626 | $(LIBOBJ)/bgfx/common/font/font_manager.o \ |
| 627 | $(LIBOBJ)/bgfx/common/font/text_buffer_manager.o \ |
| 628 | $(LIBOBJ)/bgfx/common/font/text_metrics.o \ |
| 629 | $(LIBOBJ)/bgfx/common/font/utf8.o \ |
| 630 | $(LIBOBJ)/bgfx/common/imgui/imgui.o \ |
| 631 | $(LIBOBJ)/bgfx/common/nanovg/nanovg.o \ |
| 632 | $(LIBOBJ)/bgfx/common/nanovg/nanovg_bgfx.o \ |
| 633 | # $(LIBOBJ)/bgfx/common/entry/cmd.o \ |
| 634 | # $(LIBOBJ)/bgfx/common/entry/dbg.o \ |
| 635 | # $(LIBOBJ)/bgfx/common/entry/entry.o \ |
| 636 | # $(LIBOBJ)/bgfx/common/entry/entry_android.o \ |
| 637 | # $(LIBOBJ)/bgfx/common/entry/entry_asmjs.o \ |
| 638 | # $(LIBOBJ)/bgfx/common/entry/entry_linux.o \ |
| 639 | # $(LIBOBJ)/bgfx/common/entry/entry_nacl.o \ |
| 640 | # $(LIBOBJ)/bgfx/common/entry/entry_qnx.o \ |
| 641 | # $(LIBOBJ)/bgfx/common/entry/entry_sdl.o \ |
| 642 | # $(LIBOBJ)/bgfx/common/entry/entry_windows.o \ |
| 643 | # $(LIBOBJ)/bgfx/common/entry/input.o \ |
| 644 | |
| 645 | $(OBJ)/libbgfx.a: $(BGFXOBJS) |
| 646 | |
| 647 | BGFXINC = -I$(3RDPARTY)/bgfx/include -I$(3RDPARTY)/bgfx/3rdparty -I$(3RDPARTY)/bx/include -I$(3RDPARTY)/bgfx/3rdparty/khronos |
| 648 | ifdef MSVC_BUILD |
| 649 | BGFXINC += -I$(3RDPARTY)/bx/include/compat/msvc |
| 650 | else |
| 651 | ifeq ($(TARGETOS),win32) |
| 652 | BGFXINC += -I$(3RDPARTY)/bx/include/compat/mingw |
| 653 | endif |
| 654 | ifeq ($(TARGETOS),freebsd) |
| 655 | BGFXINC += -I$(3RDPARTY)/bx/include/compat/freebsd |
| 656 | endif |
| 657 | ifeq ($(TARGETOS),macosx) |
| 658 | BGFXINC += -I$(3RDPARTY)/bx/include/compat/osx |
| 659 | endif |
| 660 | endif |
| 661 | |
| 662 | ifeq ($(TARGETOS),win32) |
| 663 | BGFXINC += -I$(3RDPARTY)/dxsdk/Include |
| 664 | ifeq ($(PTR64),1) |
| 665 | BGFXINC += -L$(3RDPARTY)/dxsdk/lib/x64 -D_WIN32_WINNT=0x601 |
| 666 | else |
| 667 | BGFXINC += -L$(3RDPARTY)/dxsdk/lib/x86 -D_WIN32_WINNT=0x601 |
| 668 | endif |
| 669 | endif |
| 670 | |
| 671 | $(LIBOBJ)/bgfx/%.o: $(3RDPARTY)/bgfx/src/%.cpp | $(OSPREBUILD) |
| 672 | @echo Compiling $<... |
| 673 | $(CC) $(CDEFS) $(CCOMFLAGS) $(BGFXINC) -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -c $< -o $@ |
| 674 | |
| 675 | $(LIBOBJ)/bgfx/common/%.o: $(3RDPARTY)/bgfx/examples/common/%.cpp | $(OSPREBUILD) |
| 676 | @echo Compiling $<... |
| 677 | $(CC) $(CDEFS) $(CCOMFLAGS) $(BGFXINC) -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -c $< -o $@ |
| 678 | |