1 # Copyright (c) 2016 Samsung Electronics Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 dali_swig_dir = ../../../../plugins/dali-swig
18 $(dali_swig_dir)/automatic/cpp/dali_wrap.cpp \
19 $(dali_swig_dir)/automatic/cpp/dali_wrap.h
22 gbs-local: libNDalic.so NDali.dll
24 libNDalic.so: $(dali_swig_dir)/automatic/cpp/dali_wrap.o $(dali_swig_dir)/manual/cpp/dali_wrap_manual.o
25 $(CXX) -shared $(dali_swig_dir)/automatic/cpp/dali_wrap.o $(dali_swig_dir)/manual/cpp/dali_wrap_manual.o -o $(dali_swig_dir)/libNDalic.so $(DALICORE_LIBS) $(DALIADAPTOR_LIBS) $(DALITOOLKIT_LIBS)
27 $(dali_swig_dir)/automatic/cpp/dali_wrap.o: $(BUILT_SOURCES)
28 $(CXX) -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) $(dali_swig_dir)/automatic/cpp/dali_wrap.cpp -o $(dali_swig_dir)/automatic/cpp/dali_wrap.o
30 $(dali_swig_dir)/manual/cpp/dali_wrap_manual.o: $(BUILT_SOURCES)
31 $(CXX) -c -fpic $(CXXFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) $(dali_swig_dir)/manual/cpp/keyboard_focus_manager_wrap.cpp -o $(dali_swig_dir)/manual/cpp/dali_wrap_manual.o
33 NDali.dll: $(BUILT_SOURCES)
34 # mcs -nologo -target:library -out:$(dali_swig_dir)/NDali.dll $(dali_swig_dir)/automatic/csharp/*.cs $(dali_swig_dir)/manual/csharp/*.cs
36 $(BUILT_SOURCES): $(dali_swig_dir)/SWIG/*.i
37 rm -f $(dali_swig_dir)/automatic/csharp/*.cs
38 rm -f $(dali_swig_dir)/automatic/cpp/*.cpp
40 $(SWIG) -csharp -c++ -outdir $(dali_swig_dir)/automatic/csharp \
41 $(DALI_CFLAGS) $(DALICORE_CFLAGS) $(DALIADAPTOR_CFLAGS) $(DALITOOLKIT_CFLAGS) -namespace Dali -o $(dali_swig_dir)/automatic/cpp/dali_wrap.cpp $(dali_swig_dir)/SWIG/dali.i
43 gbs-install: gbs-local
44 -$(INSTALL) -d $(DESTDIR)
45 -$(INSTALL) $(dali_swig_dir)/libNDalic.so $(DESTDIR)
46 -$(INSTALL) $(dali_swig_dir)/NDali.dll $(DESTDIR)