Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 1 | # |
| 2 | # Licensed to the Apache Software Foundation (ASF) under one |
| 3 | # or more contributor license agreements. See the NOTICE file |
| 4 | # distributed with this work for additional information |
| 5 | # regarding copyright ownership. The ASF licenses this file |
| 6 | # to you under the Apache License, Version 2.0 (the |
| 7 | # "License"); you may not use this file except in compliance |
| 8 | # with the License. You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, |
| 13 | # software distributed under the License is distributed on an |
| 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | # KIND, either express or implied. See the License for the |
| 16 | # specific language governing permissions and limitations |
| 17 | # under the License. |
| 18 | # |
| 19 | |
Roger Meier | 41ad434 | 2015-03-24 22:30:40 +0100 | [diff] [blame] | 20 | THRIFT = $(top_builddir)/compiler/cpp/thrift |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 21 | THRIFTCMD = $(THRIFT) --gen haxe -r |
| 22 | THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift |
| 23 | |
| 24 | BIN_CPP = bin/Main-debug |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 25 | BIN_PHP = bin/php/Main-debug.php |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 26 | |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 27 | gen-haxe/thrift/test/ThriftTest.hx: $(THRIFTTEST) |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 28 | $(THRIFTCMD) $(THRIFTTEST) |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 29 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 30 | all-local: $(BIN_CPP) $(BIN_PHP) |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 31 | |
Jens Geyer | bbd6fd7 | 2015-05-30 19:33:44 +0200 | [diff] [blame] | 32 | $(BIN_CPP): \ |
| 33 | src/*.hx \ |
| 34 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 35 | gen-haxe/thrift/test/ThriftTest.hx |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 36 | $(HAXE) --cwd . cpp.hxml |
| 37 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 38 | $(BIN_PHP): \ |
| 39 | src/*.hx \ |
| 40 | ../../lib/haxe/src/org/apache/thrift/**/*.hx \ |
| 41 | gen-haxe/thrift/test/ThriftTest.hx |
| 42 | $(HAXE) --cwd . php.hxml |
| 43 | |
| 44 | |
| 45 | |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 46 | |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 47 | #TODO: other haxe targets |
Jens Geyer | fea00ac | 2014-10-01 02:22:48 +0200 | [diff] [blame] | 48 | # $(HAXE) --cwd . csharp |
| 49 | # $(HAXE) --cwd . flash |
| 50 | # $(HAXE) --cwd . java |
| 51 | # $(HAXE) --cwd . javascript |
| 52 | # $(HAXE) --cwd . neko |
Jens Geyer | bbd6fd7 | 2015-05-30 19:33:44 +0200 | [diff] [blame] | 53 | # $(HAXE) --cwd . python # needs Haxe 3.2.0 |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 54 | |
| 55 | |
| 56 | clean-local: |
| 57 | $(RM) -r gen-haxe bin |
| 58 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 59 | check: check_cpp check_php |
| 60 | |
| 61 | check_cpp: $(BIN_CPP) |
Jens Geyer | 8c8e9c6 | 2014-12-29 19:52:47 +0100 | [diff] [blame] | 62 | timeout 10 $(BIN_CPP) server & |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 63 | sleep 1 |
| 64 | $(BIN_CPP) client |
Jens Geyer | 8c8e9c6 | 2014-12-29 19:52:47 +0100 | [diff] [blame] | 65 | sleep 10 |
Jens Geyer | bd52f1a | 2014-07-28 01:25:30 +0200 | [diff] [blame] | 66 | |
Jens Geyer | 1d20a37 | 2016-03-15 23:04:27 +0200 | [diff] [blame] | 67 | check_php: $(BIN_PHP) |
| 68 | timeout 10 php -f $(BIN_PHP) server & |
| 69 | sleep 1 |
| 70 | php -f $(BIN_PHP) client |
| 71 | sleep 10 |
| 72 | |
| 73 | |
Jens Geyer | 65e9bde | 2014-11-11 01:30:02 +0100 | [diff] [blame] | 74 | EXTRA_DIST = \ |
| 75 | src \ |
| 76 | cpp.hxml \ |
| 77 | csharp.hxml \ |
| 78 | flash.hxml \ |
| 79 | java.hxml \ |
| 80 | javascript.hxml \ |
| 81 | neko.hxml \ |
| 82 | php.hxml \ |
| 83 | python.hxml \ |
| 84 | project.hide \ |
| 85 | TestClientServer.hxproj \ |
| 86 | make_all.bat \ |
| 87 | make_all.sh |