diff options
author | Priyesh Kumar <priyeshkkumar@gmail.com> | 2020-08-26 12:27:52 +0530 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2020-12-01 09:20:32 +0100 |
commit | 34b1c897c109d853fcae123f11a4bc756a5eca2f (patch) | |
tree | 366ad3a5d933e45e8231b4d910883f82889ae89a /builds/toplevel.mk | |
parent | 8da4b437b4f784e9822e260cab5ecf1a0273469c (diff) | |
download | freetype2-34b1c897c109d853fcae123f11a4bc756a5eca2f.tar.gz |
[builds] Necessary changes to make 'dlg' compile.
* autogen.sh (copy_submodule_files): New script to copy all the
necessary source and include files from `submodules/dlg` to
`src/dlg`.
* src/dlg/dlgwrap.c: New wrapper file for `src/dlg.c`. It enables
the build of 'dlg' if the `FT_LOGGING` macro is defined.
* src/dlg/rules.mk: New sub-Makefile.
* builds/freetype.mk (DLG_DIR): New variable to include the
header files of the 'dlg' library.
(INCLUDES): Add `DLG_DIR`.
(FT_CFLAGS): Add `-std=c99' flag.
Include `src/dlg/rules.mk` file to build 'dlg' library.
(OBJ_S, OBJ_M): Add `DLG_OBJS_M` and `DLG_OBJS_S`.
* builds/toplevel.mk: For builds directly from the git repository
we need to copy files from `submodule/dlg` to `src/dlg`.
* include/freetype/config/ftoption.h, devel/ftoption.h (FT_LOGGING):
New macro to enable or disable the logging facility in FreeType.
Diffstat (limited to 'builds/toplevel.mk')
-rw-r--r-- | builds/toplevel.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/builds/toplevel.mk b/builds/toplevel.mk index 5de61c113..c08c9f4e7 100644 --- a/builds/toplevel.mk +++ b/builds/toplevel.mk @@ -103,6 +103,23 @@ ifneq ($(findstring setup,$(MAKECMDGOALS)),) check_platform := 1 endif +# For builds directly from the git repository we need to copy files +# from `submodule/dlg' to `src/dlg'. +# +ifeq ($(wildcard src/dlg/dlg.*),) + ifeq ($(wildcard submodules/dlg/dlg.*),) + $(info Checking out submodule in `submodules/dlg') + $(shell git submodule init) + $(shell git submodule update) + endif + + $(info Copying files from `submodules/dlg' to `src/dlg') + $(shell mkdir src/dlg/dlg) + $(shell cp submodules/dlg/include/dlg/dlg.h src/dlg/dlg) + $(shell cp submodules/dlg/include/dlg/output.h src/dlg/dlg) + $(shell cp submodules/dlg/src/dlg/dlg.c src/dlg/) +endif + # Include the automatic host platform detection rules when we need to # check the platform. # |