[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] priyesh_LogLibrary 1e1912d: Started working on build process
From: |
Priyesh Kumar |
Subject: |
[freetype2] priyesh_LogLibrary 1e1912d: Started working on build process |
Date: |
Mon, 20 Jul 2020 08:49:19 -0400 (EDT) |
branch: priyesh_LogLibrary
commit 1e1912dbaca7cedbd7f1167df856f8178728d1ec
Author: Priyeshkkumar <priyeshkkumar@gmail.com>
Commit: Priyeshkkumar <priyeshkkumar@gmail.com>
Started working on build process
---
.gitmodules | 5 +--
[priyesh]ChangeLog | 14 ++++++++
autogen.sh | 21 ++++++++++++
include/freetype/internal/ftdebug.h | 4 +--
src/base/ftdebug.c | 2 ++
src/dlg/rules.mk | 68 +++++++++++++++++++++++++++++++++++++
{src => submodules}/dlg | 0
7 files changed, 110 insertions(+), 4 deletions(-)
diff --git a/.gitmodules b/.gitmodules
index 967015f..3b47f17 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,3 +1,4 @@
-[submodule "src/dlg"]
- path = src/dlg
+
+[submodule "submodules/dlg"]
+ path = submodules/dlg
url = https://github.com/nyorain/dlg.git
diff --git a/[priyesh]ChangeLog b/[priyesh]ChangeLog
index a45c8bf..8a68e8e 100644
--- a/[priyesh]ChangeLog
+++ b/[priyesh]ChangeLog
@@ -1,3 +1,17 @@
+2020-07-20 Priyesh Kumar <priyeshkkumar@gmail.com>
+
+ * Changed git submodule(dlg) from `src/dlg` to `submodules/dlg`
+
+ * Updated autogen.sh file:
+ For copying the necessary files from `submodules/dlg` to `src\dlg`.
+ If the git submodule(dlg) is not checked-out, first it runs necessary
+ git commands for checking out the submodule(dlg) ad then it copies
+ the files.
+ * include/freetype/internal/ftdebug.h:
+ Updated the include path for dlg.
+
+ * Added a new file `src/dlg/rules.mk`
+
2020-07-15 Priyesh Kumar <priyeshkkumar@gmail.com>
* builds/compiler/gcc.mk: Added a flag -std=c99 for using dlg on windows
diff --git a/autogen.sh b/autogen.sh
index 79c4e4e..089350d 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -162,4 +162,25 @@ cd ../..
chmod +x ./configure
+copy_submodule_files()
+{
+ echo "Copying files from \`submodules/dlg' to \`src/dlg'"
+ cp $DLG_INC_DIR/dlg.h src/dlg
+ cp $DLG_INC_DIR/output.h src/dlg
+ cp $DLG_SRC_DIR/* src/dlg
+}
+
+DLG_INC_DIR=submodules/dlg/include/dlg
+DLG_SRC_DIR=submodules/dlg/src/dlg
+
+if ! test -d "$DLG_INC_DIR"; then
+ echo "Submodule check out:"
+ git submodule init
+ git submodule update
+
+ copy_submodule_files
+else
+ copy_submodule_files
+fi
+
# EOF
diff --git a/include/freetype/internal/ftdebug.h
b/include/freetype/internal/ftdebug.h
index 5c9fda3..6ce0e07 100644
--- a/include/freetype/internal/ftdebug.h
+++ b/include/freetype/internal/ftdebug.h
@@ -37,8 +37,8 @@
*/
#ifdef FT_LOGGING
-#include <../src/dlg/include/dlg/dlg.h>
-#include <../src/dlg/include/dlg/output.h>
+#include <../src/dlg/dlg.h>
+#include <../src/dlg/output.h>
#include <freetype/ftlogging.h>
#endif /* FT_LOGGING */
diff --git a/src/base/ftdebug.c b/src/base/ftdebug.c
index a1fc99e..c60cb38 100644
--- a/src/base/ftdebug.c
+++ b/src/base/ftdebug.c
@@ -543,12 +543,14 @@ else
FT_BASE_DEF( void )
ft_add_tag( const char* tag )
{
+ (void) tag;
/* nothing */
}
FT_BASE_DEF( void )
ft_remove_tag( const char* tag )
{
+ (void) tag;
/* nothing */
}
diff --git a/src/dlg/rules.mk b/src/dlg/rules.mk
new file mode 100644
index 0000000..08d0ed0
--- /dev/null
+++ b/src/dlg/rules.mk
@@ -0,0 +1,68 @@
+#
+# FreeType 2 dlg logging library configuration rules
+#
+
+
+# Copyright (C) 1996-2020 by
+# David Turner, Robert Wilhelm, and Werner Lemberg.
+#
+# This file is part of the FreeType project, and may only be used, modified,
+# and distributed under the terms of the FreeType project license,
+# LICENSE.TXT. By continuing to use, modify, or distribute this file you
+# indicate that you have read the license and understand and accept it
+# fully.
+
+
+# dlg logging library directory
+#
+DLG_DIR := $(SRC_DIR)/dlg
+
+
+DLG_COMPILE := $(CC) $(ANSIFLAGS) \
+ $I$(subst /,$(COMPILER_SEP),$(DLG_DIR)) \
+ $(INCLUDE_FLAGS) \
+ $(FT_CFLAGS)
+
+
+# dlg logging library sources (i.e., C files)
+#
+DLG_SRC := $(DLG_DIR)/dlg.c
+
+# dlg logging library headers
+#
+DLG_H := $(DLG_SRC:%.c=%.h) \
+ $(DLG_DIR)/output.h
+
+
+# dlg logging library object(s)
+#
+# DLG_OBJ_M is used during `multi' builds
+# DLG_OBJ_S is used during `single' builds
+#
+DLG_OBJ_M := $(DLG_SRC:$(DLG_DIR)/%.c=$(OBJ_DIR)/%.$O)
+DLG_OBJ_S := $(OBJ_DIR)/dlg.$O
+
+# dlg logging library source file for single build
+#
+DLG_SRC_S := $(DLG_DIR)/dlg.c
+
+
+# dlg logging library - single object
+#
+$(DLG_OBJ_S): $(DLG_SRC_S) $(DLG_SRC) $(FREETYPE_H) $(DLG_H)
+ $(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(DLG_SRC_S))
+
+
+# dlg logging library - multiple objects
+#
+$(OBJ_DIR)/%.$O: $(DLG_DIR)/%.c $(FREETYPE_H) $(DLG_H)
+ $(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
+
+
+# update main object lists
+#
+DLG_OBJS_S += $(DLG_OBJ_S)
+DLG_OBJS_M += $(DLG_OBJ_M)
+
+
+# EOF
diff --git a/src/dlg b/submodules/dlg
similarity index 100%
rename from src/dlg
rename to submodules/dlg
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] priyesh_LogLibrary 1e1912d: Started working on build process,
Priyesh Kumar <=