| OLD | NEW |
| 1 # Simple makefile for skia library and test apps | 1 # Simple makefile for skia library and test apps |
| 2 # | 2 # |
| 3 # This is the handmade Makefile that we *used* to use before changing over | 3 # This is the handmade Makefile that we *used* to use before changing over |
| 4 # to gyp. Keeping it around for now in case some folks need to use it... | 4 # to gyp. Keeping it around for now in case some folks need to use it... |
| 5 # but please contact epoger@google.com about anything you're still using in | 5 # but please contact epoger@google.com about anything you're still using in |
| 6 # here, so we can provide equivalent functionality in the gyp build. | 6 # here, so we can provide equivalent functionality in the gyp build. |
| 7 | 7 |
| 8 # setup our defaults | 8 # setup our defaults |
| 9 CC := gcc | 9 CC := gcc |
| 10 GPP := g++ | 10 GPP := g++ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 endif | 26 endif |
| 27 | 27 |
| 28 ifeq ($(SKIA_DEBUG),true) | 28 ifeq ($(SKIA_DEBUG),true) |
| 29 DEFINES += -DSK_DEBUG -DSK_SUPPORT_UNIT -DGR_DEBUG=1 | 29 DEFINES += -DSK_DEBUG -DSK_SUPPORT_UNIT -DGR_DEBUG=1 |
| 30 CFLAGS += -g | 30 CFLAGS += -g |
| 31 else | 31 else |
| 32 CFLAGS += -O3 | 32 CFLAGS += -O3 |
| 33 DEFINES += -DSK_RELEASE -DGR_DEBUG=0 | 33 DEFINES += -DSK_RELEASE -DGR_DEBUG=0 |
| 34 endif | 34 endif |
| 35 | 35 |
| 36 DEFINES += -DGR_IMPLEMENTATION=1 | |
| 37 | |
| 38 ifneq ($(SKIA_PDF_SUPPORT),false) | 36 ifneq ($(SKIA_PDF_SUPPORT),false) |
| 39 DEFINES += -DSK_SUPPORT_PDF | 37 DEFINES += -DSK_SUPPORT_PDF |
| 40 DEFINES += -DSK_ZLIB_INCLUDE="<zlib.h>" | 38 DEFINES += -DSK_ZLIB_INCLUDE="<zlib.h>" |
| 41 endif | 39 endif |
| 42 | 40 |
| 43 ifeq ($(SKIA_SHARED),true) | 41 ifeq ($(SKIA_SHARED),true) |
| 44 CFLAGS += -fPIC | 42 CFLAGS += -fPIC |
| 45 LIBSKIA = out/libskia.so | 43 LIBSKIA = out/libskia.so |
| 46 else | 44 else |
| 47 LIBSKIA = out/libskia.a | 45 LIBSKIA = out/libskia.a |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 @echo " clean: removes entire out/ directory" | 318 @echo " clean: removes entire out/ directory" |
| 321 @echo " help: this text" | 319 @echo " help: this text" |
| 322 @echo "Options: (after make, or in bash shell)" | 320 @echo "Options: (after make, or in bash shell)" |
| 323 @echo " SKIA_DEBUG=true for debug build" | 321 @echo " SKIA_DEBUG=true for debug build" |
| 324 @echo " SKIA_SHARED=true for shared-object libskia build" | 322 @echo " SKIA_SHARED=true for shared-object libskia build" |
| 325 @echo " SKIA_SCALAR=fixed for fixed-point build" | 323 @echo " SKIA_SCALAR=fixed for fixed-point build" |
| 326 @echo " SKIA_BUILD_FOR=mac for mac build (e.g. CG for image decoding)
" | 324 @echo " SKIA_BUILD_FOR=mac for mac build (e.g. CG for image decoding)
" |
| 327 @echo " SKIA_PDF_SUPPORT=false to disable the pdf generation backend" | 325 @echo " SKIA_PDF_SUPPORT=false to disable the pdf generation backend" |
| 328 @echo " SKIA_MESA=true to build with osmesa instead of native GL. | 326 @echo " SKIA_MESA=true to build with osmesa instead of native GL. |
| 329 @echo "" | 327 @echo "" |
| OLD | NEW |