[gedit-code-assistance] Move C backend to separate directory
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-code-assistance] Move C backend to separate directory
- Date: Sun, 4 Mar 2012 20:45:20 +0000 (UTC)
commit aafbd85c4aa80dcb3505a1b5fcd186c8081496f8
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sun Mar 4 21:43:10 2012 +0100
Move C backend to separate directory
configure.ac | 2 +-
src/Makefile.am | 16 +++++++++-------
src/{ => backends/c}/gcp-c-backend.vala | 0
src/{ => backends/c}/gcp-c-compile-args.vala | 0
src/{ => backends/c}/gcp-c-document.vala | 0
src/{ => backends/c}/gcp-c-semantic-value.vala | 0
src/{ => backends/c}/gcp-c-translation-unit.vala | 0
src/{ => backends/c}/gcp-c-translator.vala | 0
8 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 538696e..93057e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ AM_PROG_CC_STDC
AC_HEADER_STDC
AM_PROG_LIBTOOL
-AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip -Wno-portability])
+AM_INIT_AUTOMAKE([1.11 tar-ustar dist-xz no-dist-gzip -Wno-portability subdir-objects])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
diff --git a/src/Makefile.am b/src/Makefile.am
index 9682993..8c3208d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -31,15 +31,17 @@ vala_sources = \
gcp-diagnostic-tags.vala \
gcp-diagnostic-support.vala \
gcp-diagnostic-message.vala \
- gcp-c-backend.vala \
- gcp-c-document.vala \
- gcp-c-compile-args.vala \
- gcp-c-translation-unit.vala \
- gcp-c-semantic-value.vala \
- gcp-c-translator.vala \
gcp-log.vala \
gcp-config.vala
+vala_sources += \
+ backends/c/gcp-c-backend.vala \
+ backends/c/gcp-c-document.vala \
+ backends/c/gcp-c-compile-args.vala \
+ backends/c/gcp-c-translation-unit.vala \
+ backends/c/gcp-c-semantic-value.vala \
+ backends/c/gcp-c-translator.vala
+
SOURCES = \
$(vala_sources) \
gcp-utils-c.c
@@ -51,7 +53,7 @@ BUILT_SOURCES = $(vala_sources:.vala=.c)
libgcp_la_SOURCES = $(SOURCES)
-libgcp_la_CFLAGS = $(GCP_CFLAGS) $(GEDIT_CFLAGS) $(LLVM_CFLAGS) -Wimplicit-function-declaration -Wno-unused-value -Wno-ignored-qualifiers -Wno-conversion -Wno-unused-but-set-variable -Wno-unused-label
+libgcp_la_CFLAGS = $(GCP_CFLAGS) $(GEDIT_CFLAGS) $(LLVM_CFLAGS) -w
libgcp_la_LDFLAGS = -module -shared -avoid-version $(GCP_LIBS) $(LLVM_LIBS) $(GEDIT_LIBS)
valapkgs = gio-2.0 gee-1.0 clang gcp gtk+-3.0 gtksourceview-3.0 gedit-3.0 libpeas-1.0
diff --git a/src/gcp-c-backend.vala b/src/backends/c/gcp-c-backend.vala
similarity index 100%
rename from src/gcp-c-backend.vala
rename to src/backends/c/gcp-c-backend.vala
diff --git a/src/gcp-c-compile-args.vala b/src/backends/c/gcp-c-compile-args.vala
similarity index 100%
rename from src/gcp-c-compile-args.vala
rename to src/backends/c/gcp-c-compile-args.vala
diff --git a/src/gcp-c-document.vala b/src/backends/c/gcp-c-document.vala
similarity index 100%
rename from src/gcp-c-document.vala
rename to src/backends/c/gcp-c-document.vala
diff --git a/src/gcp-c-semantic-value.vala b/src/backends/c/gcp-c-semantic-value.vala
similarity index 100%
rename from src/gcp-c-semantic-value.vala
rename to src/backends/c/gcp-c-semantic-value.vala
diff --git a/src/gcp-c-translation-unit.vala b/src/backends/c/gcp-c-translation-unit.vala
similarity index 100%
rename from src/gcp-c-translation-unit.vala
rename to src/backends/c/gcp-c-translation-unit.vala
diff --git a/src/gcp-c-translator.vala b/src/backends/c/gcp-c-translator.vala
similarity index 100%
rename from src/gcp-c-translator.vala
rename to src/backends/c/gcp-c-translator.vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]