X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2FMakefile.am;h=27bec6cf2f9b8e82bb48a8906619ecae37cfeb51;hp=9a4c8d66612855ab42e0b482e57d5065132de23e;hb=refs%2Fchanges%2F74%2F118474%2F3;hpb=0b5d20c961476797f7ffcdfb67026aac3253f94d diff --git a/plugins/dali-swig/Makefile.am b/plugins/dali-swig/Makefile.am old mode 100644 new mode 100755 index 9a4c8d6..27bec6c --- a/plugins/dali-swig/Makefile.am +++ b/plugins/dali-swig/Makefile.am @@ -23,8 +23,8 @@ if BUILD_MCS all-local: libNDalic.so NDali.dll -libNDalic.so: automatic/cpp/dali_wrap.o manual/cpp/keyboard_focus_manager_wrap.o - g++ -shared automatic/cpp/dali_wrap.o manual/cpp/keyboard_focus_manager_wrap.o -o libNDalic.so $(DALICORE_LIBS) $(DALIADAPTOR_LIBS) $(DALITOOLKIT_LIBS) +libNDalic.so: automatic/cpp/dali_wrap.o manual/cpp/keyboard_focus_manager_wrap.o manual/cpp/view-wrapper-impl-wrap.o manual/cpp/callbackbase_wrap.o manual/cpp/devel-property-wrap.o + g++ -shared automatic/cpp/dali_wrap.o manual/cpp/keyboard_focus_manager_wrap.o manual/cpp/view-wrapper-impl-wrap.o manual/cpp/callbackbase_wrap.o manual/cpp/devel-property-wrap.o -o libNDalic.so $(DALICORE_LIBS) $(DALIADAPTOR_LIBS) $(DALITOOLKIT_LIBS) automatic/cpp/dali_wrap.o: $(BUILT_SOURCES) g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) automatic/cpp/dali_wrap.cpp -o automatic/cpp/dali_wrap.o @@ -32,12 +32,29 @@ automatic/cpp/dali_wrap.o: $(BUILT_SOURCES) manual/cpp/keyboard_focus_manager_wrap.o: $(BUILT_SOURCES) g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/keyboard_focus_manager_wrap.cpp -o manual/cpp/keyboard_focus_manager_wrap.o +manual/cpp/view-wrapper-impl-wrap.o: $(BUILT_SOURCES) + g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/view-wrapper-impl-wrap.cpp -o manual/cpp/view-wrapper-impl-wrap.o + +manual/cpp/callbackbase_wrap.o: $(BUILT_SOURCES) + g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/callbackbase_wrap.cpp -o manual/cpp/callbackbase_wrap.o + +manual/cpp/devel-property-wrap.o: $(BUILT_SOURCES) + g++ -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) manual/cpp/devel-property-wrap.cpp -o manual/cpp/devel-property-wrap.o + NDali.dll: $(BUILT_SOURCES) - $(MCS) -nologo -target:library -out:NDali.dll automatic/csharp/*.cs manual/csharp/*.cs + $(MCS) -nologo -target:library -out:NDali.dll automatic/csharp/*.cs manual/csharp/*.cs views/*.cs check-local: examples/dali-test.exe \ examples/hello-world.exe \ examples/scroll-view.exe \ + examples/custom-control.exe \ + examples/date-picker.exe \ + examples/control-dashboard.exe \ + examples/date-picker-using-json.exe \ + examples/json-loader.exe \ + examples/user-alphafunction.exe \ + examples/image-view.exe \ + examples/visuals-example.exe \ examples/libNDalic.so examples/NDali.dll examples/%.exe: examples/%.cs @@ -56,11 +73,17 @@ endif # then call our property-wrapper to inject DALi property getters / setters $(BUILT_SOURCES): SWIG/*.i rm -f automatic/csharp/*.cs + mkdir -p automatic/csharp $(SWIG) -csharp -c++ -outdir automatic/csharp \ $(DALI_CFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) -namespace Dali -o automatic/cpp/dali_wrap.cpp SWIG/dali.i ./property-wrapper.rb ./constructor-generator.rb +# have manual binding for View now, but cannot stop swig generating binding for +# it as otherwise swig will not generate correct binding for any classes inherited +# from it, therefore have to delete the automatic binding for View in the end + rm -f automatic/csharp/View.cs + dist-hook: $(BUILT_SOURCES) mkdir -p $(distdir)/automatic/cpp cp ./automatic/cpp/*.cpp $(distdir)/automatic/cpp