Browse Source

Add hello example to the build process.

pull/1/head
Zoltan Varga 15 years ago committed by Andreia Gaita
parent
commit
5d91a5879a
  1. 2
      configure.ac
  2. 4
      examples/Hello/Makefile.am
  3. 7
      examples/Makefile.am

2
configure.ac

@ -68,6 +68,8 @@ src/generator2/Makefile @@ -68,6 +68,8 @@ src/generator2/Makefile
src/qt/Makefile
src/Makefile
tests2/Makefile
examples/Makefile
examples/Hello/Makefile
Makefile
])

4
examples/Hello/Makefile → examples/Hello/Makefile.am

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
top_srcdir=../..
default: libhello.so Hello.xml Hello.exe
all: libhello.so Hello.xml Hello.exe
libhello.so: Hello.cpp Hello.h
$(CXX) -fPIC --shared -o $@ Hello.cpp
@ -11,7 +11,7 @@ Hello.xml: Hello.h @@ -11,7 +11,7 @@ Hello.xml: Hello.h
output gen:
$(RM) -r output
mono $(top_srcdir)/src/generator/bin/Debug/generator.exe -f=Hello.xml -ns=Hello -lib=hello
mono $(top_srcdir)/src/generator2/bin/Debug/generator.exe -ns=Hello -lib=hello Hello.xml
INTEROP_DLL = \
$(top_srcdir)/src/Mono.VisualC.Interop/bin/Debug/Mono.VisualC.Interop.dll

7
examples/Makefile.am

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
if ENABLE_DEBUG
SUBDIRS = Hello
endif
if ENABLE_RELEASE
SUBDIRS = Hello
endif
Loading…
Cancel
Save