Skip to content

Commit

Permalink
moved own-bindings to gir
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpLink committed Jul 5, 2013
1 parent e82f4c1 commit d4fafde
Show file tree
Hide file tree
Showing 24 changed files with 65 additions and 43 deletions.
91 changes: 65 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,95 @@ export GI_TYPELIB_PATH := $(shell pwd)

all: libobject.so ValaObject-0.1.typelib c-source

run: all run-own
run: all run-gir

run-own: all run-own-ruby run-own-python run-own-php run-own-lua run-own-gnome-js run-own-node-js
run-gir: all run-gir-ruby run-gir-python run-gir-php run-gir-lua run-gir-gnome-js run-gir-node-js

run-own-ruby: all
-ruby own-bindings/ruby/test.rb
########## test gir bingings ##########

run-own-python: all
-python own-bindings/python/test.py
run-gir-ruby: all
-ruby gir/ruby/test.rb

run-own-php: all
-php own-bindings/php/test.php
run-gir-python: all
-python gir/python/test.py

run-own-perl: all
-perl own-bindings/perl/test.pl
run-gir-php: all
-php gir/php/test.php

run-own-lua: all
-lua own-bindings/lua/test.lua
-luajit-2.0.0-beta9 own-bindings/lua/test.lua
run-gir-perl: all
-perl gir/perl/test.pl

run-own-gnome-js: all
-gjs own-bindings/javascript/test.gnome.js
-seed own-bindings/javascript/test.gnome.js
run-gir-lua: all
-lua gir/lua/test.lua
-luajit-2.0.0-beta9 gir/lua/test.lua

run-own-node-js: all
-node own-bindings/javascript/test.node.js
run-gir-gnome-js: all
-gjs gir/javascript/test.gnome.js
-seed gir/javascript/test.gnome.js

run-gir-node-js: all
-node gir/javascript/test.node.js

########## test generated bindings with Valabind and Swig ##########

# TODO
run-swig-ruby: all
-ruby swig/ruby/test.rb # TODO
-ruby swig/ruby/test.rb

# TODO
run-swig-python: all
-python swig/python/test.py # TODO
-python swig/python/test.py

run-swig-php: all
-php swig/php/test.php # TODO
-php swig/php/test.php

# TODO
run-swig-perl: all
-perl swig/perl/test.pl # TODO
-perl swig/perl/test.pl

# TODO
run-swig-lua: all
-lua swig/lua/test.lua # TODO
-lua swig/lua/test.lua

# TODO
run-swig-gnome-js: all
-gjs swig/javascript/test.gnome.js # TODO
-seed swig/javascript/test.gnome.js # TODO
-gjs swig/javascript/test.gnome.js
-seed swig/javascript/test.gnome.js

# TODO
run-swig-node-js: all
-node swig/javascript/test.node.js # TODO
-node swig/javascript/test.node.js

########## generate bindings with Valabind and Swig ##########

# TODO
ruby-swig: libobject.so c-source
valabind-cc ruby object -NValaObject libobject.vapi -I. `php-config --includes` `pkg-config --cflags --libs gobject-2.0` -I/usr/include -L. -lobject -x

# TODO
python-swig: libobject.so c-source
valabind-cc python object -NValaObject libobject.vapi -I. `php-config --includes` `pkg-config --cflags --libs gobject-2.0` -I/usr/include -L. -lobject -x

php-swig: libobject.so c-source
valabind-cc php object -NValaObject libobject.vapi -I. `php-config --includes` `pkg-config --cflags --libs gobject-2.0` -I/usr/include -L. -lobject -x

# TODO
perl-swig: libobject.so c-source
valabind-cc perl object -NValaObject libobject.vapi -I. `php-config --includes` `pkg-config --cflags --libs gobject-2.0` -I/usr/include -L. -lobject -x

# TODO
lua-swig: libobject.so c-source
valabind-cc lua object -NValaObject libobject.vapi -I. `php-config --includes` `pkg-config --cflags --libs gobject-2.0` -I/usr/include -L. -lobject -x

# TODO
gnome-js-swig: libobject.so c-source
valabind-cc php object -NValaObject libobject.vapi -I. `php-config --includes` `pkg-config --cflags --libs gobject-2.0` -I/usr/include -L. -lobject -x

# TODO
node-js-swig: libobject.so c-source
valabind-cc php object -NValaObject libobject.vapi -I. `php-config --includes` `pkg-config --cflags --libs gobject-2.0` -I/usr/include -L. -lobject -x

########## Vala Stuff ##########
c-source:
valac -H object.h -C --vapi=object.vapi --library=libobject object.vala

Expand All @@ -73,5 +110,7 @@ ValaObject-0.1.typelib:
--output=ValaObject-0.1.typelib \
ValaObject-0.1.gir

########## Other ##########

clean:
rm -fr $(shell cat .gitignore)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions own-bindings/php/test.php

This file was deleted.

0 comments on commit d4fafde

Please sign in to comment.