blob: 13b42662689333acf68738e3e3eab12c53c5aa4b [file] [log] [blame]
Jens Geyerfea00ac2014-10-01 02:22:48 +02001#
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
20THRIFT = $(top_srcdir)/compiler/cpp/thrift
21THRIFTCMD = $(THRIFT) --gen haxe -r
22THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift
Jens Geyere5ff9a82014-11-11 01:39:38 +010023AGGR = $(top_srcdir)/contrib/async-test/aggr.thrift
24BENCHMARK = $(top_srcdir)/lib/rb/benchmark/Benchmark.thrift
Jens Geyerfea00ac2014-10-01 02:22:48 +020025
26BIN_CPP = bin/Main-debug
27
28gen-haxe/thrift/test/ThriftTest.hx: $(THRIFTTEST)
29 $(THRIFTCMD) $(THRIFTTEST)
30
Jens Geyere5ff9a82014-11-11 01:39:38 +010031gen-haxe/thrift/test/Aggr.hx: $(AGGR)
32 $(THRIFTCMD) $(AGGR)
33
34gen-haxe/thrift/test/BenchmarkService.hx: $(BENCHMARK)
35 $(THRIFTCMD) $(BENCHMARK)
36
Jens Geyerfea00ac2014-10-01 02:22:48 +020037all-local: $(BIN_CPP)
38
Jens Geyere5ff9a82014-11-11 01:39:38 +010039$(BIN_CPP): gen-haxe/thrift/test/ThriftTest.hx \
40 gen-haxe/thrift/test/Aggr.hx \
41 gen-haxe/thrift/test/BenchmarkService.hx
Jens Geyerfea00ac2014-10-01 02:22:48 +020042 $(HAXE) --cwd . cpp.hxml
43
44
45#TODO: other haxe targets
46# $(HAXE) --cwd . csharp
47# $(HAXE) --cwd . flash
48# $(HAXE) --cwd . java
49# $(HAXE) --cwd . javascript
50# $(HAXE) --cwd . neko
51# $(HAXE) --cwd . php
52# $(HAXE) --cwd . python # needs Haxe 3.1.4
53
54
55clean-local:
56 $(RM) -r gen-haxe bin
57
58check: $(BIN_CPP)
59 $(BIN_CPP)
60
Jens Geyer65e9bde2014-11-11 01:30:02 +010061EXTRA_DIST = \
62 src \
63 cpp.hxml \
64 csharp.hxml \
65 flash.hxml \
66 java.hxml \
67 javascript.hxml \
68 neko.hxml \
69 php.hxml \
70 python.hxml \
71 project.hide \
72 HaxeTests.hxproj \
73 make_all.bat \
74 make_all.sh