Advertisement
rotrevrep

install libide includes

Apr 8th, 2015
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.67 KB | None | 0 0
  1. diff --git a/configure.ac b/configure.ac
  2. index 725dc19..9c1da4b 100644
  3. --- a/configure.ac
  4. +++ b/configure.ac
  5. @@ -48,7 +48,7 @@ AM_PROG_LIBTOOL
  6.  
  7.  AC_C_CONST
  8.  
  9. -GNOME_CXX_WARNINGS([maximum])
  10. +GNOME_COMPILE_WARNINGS([maximum])
  11.  GNOME_MAINTAINER_MODE_DEFINES
  12.  
  13.  # If we are using gtk-doc, enable it.
  14. diff --git a/libide/Makefile.am b/libide/Makefile.am
  15. index 4acb49d..c0dc253 100644
  16. --- a/libide/Makefile.am
  17. +++ b/libide/Makefile.am
  18. @@ -352,6 +352,8 @@ libide_1_0_la_LIBADD = \
  19.     -lm \
  20.     libeditorconfig.la \
  21.     $(NULL)
  22. +  
  23. +AM_CPPFLAGS += -DIDE_INSIDE
  24.  
  25.  if ENABLE_TRACING
  26.  else
  27. @@ -394,6 +396,12 @@ nodist_libide_1_0_la_SOURCES = \
  28.     $(libide_1_0_la_built_sources) \
  29.     $(NULL)
  30.  
  31. +ideincludedir=$(includedir)/ide-1.0
  32. +ideinclude_HEADERS = $(filter %.h, $(libide_1_0_la_public_sources)) \
  33. +   libide/ide-debug.h \
  34. +   libide/ide-enums.h \
  35. +   libide/ide-vcs-uri.h
  36. +
  37.  BUILT_SOURCES += $(libide_1_0_la_built_sources)
  38.  
  39.  DISTCLEANFILES += $(libide_1_0_la_built_sources)
  40. diff --git a/libide/ide.h b/libide/ide.h
  41. index e7bb7da..a2c2567 100644
  42. --- a/libide/ide.h
  43. +++ b/libide/ide.h
  44. @@ -23,8 +23,6 @@
  45.  
  46.  G_BEGIN_DECLS
  47.  
  48. -#define IDE_INSIDE
  49. -
  50.  #include "ide-back-forward-item.h"
  51.  #include "ide-back-forward-list.h"
  52.  #include "ide-build-result.h"
  53. @@ -90,6 +88,8 @@ G_BEGIN_DECLS
  54.  #include "ide-vcs.h"
  55.  #include "ide-vcs-uri.h"
  56.  
  57. +#ifdef IDE_INSIDE
  58. +
  59.  #include "autotools/ide-autotools-build-system.h"
  60.  #include "autotools/ide-autotools-project-miner.h"
  61.  #include "devhelp/ide-devhelp-search-result.h"
  62. @@ -101,7 +101,7 @@ G_BEGIN_DECLS
  63.  #include "local/ide-local-device.h"
  64.  #include "theatrics/ide-animation.h"
  65.  
  66. -#undef IDE_INSIDE
  67. +#endif
  68.  
  69.  G_END_DECLS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement