Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
b2program
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
b2program
Commits
359611c3
Commit
359611c3
authored
4 weeks ago
by
Fabian Vu
Browse files
Options
Downloads
Patches
Plain Diff
Add first version to use Makefile for TypeScript/JavaScript
parent
403a5d8e
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#155889
passed
4 weeks ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+14
-0
14 additions, 0 deletions
Makefile
with
14 additions
and
0 deletions
Makefile
+
14
−
0
View file @
359611c3
...
@@ -7,6 +7,9 @@ JAVA_DEPENDENCIES= :btypes.jar
...
@@ -7,6 +7,9 @@ JAVA_DEPENDENCIES= :btypes.jar
CPP_CODE_GEN_FLAGS
=
-l
cpp
-mc
true
CPP_CODE_GEN_FLAGS
=
-l
cpp
-mc
true
CPPC
?=
clang++
CPPC
?=
clang++
CPPFLAGS
?=
-std
=
c++14
-O1
-flto
CPPFLAGS
?=
-std
=
c++14
-O1
-flto
TS_CODE_GEN_FLAGS
=
-l
ts
-mc
true
TSC
?=
tsc
TSCFLAGS
=
--target
ES6
--moduleResolution
node
RS_CODE_GEN_FLAGS
=
-l
rs
-mc
true
RS_CODE_GEN_FLAGS
=
-l
rs
-mc
true
STRATEGY
=
mixed
STRATEGY
=
mixed
THREADS
=
1
THREADS
=
1
...
@@ -22,6 +25,10 @@ btypes_primitives:
...
@@ -22,6 +25,10 @@ btypes_primitives:
btypes_big_integer
:
btypes_big_integer
:
cd
btypes_big_integer
&&
./gradlew fatJar
&&
cp
build/libs/btypes_big_integer-all.jar ../btypes.jar
&&
cd
..
cd
btypes_big_integer
&&
./gradlew fatJar
&&
cp
build/libs/btypes_big_integer-all.jar ../btypes.jar
&&
cd
..
refresh
:
./gradlew eclipse
--refresh-dependencies
ifndef
LANGUAGE
ifndef
LANGUAGE
echo
"LANGUAGE is not set"
echo
"LANGUAGE is not set"
else
else
...
@@ -39,6 +46,13 @@ ifeq ($(LANGUAGE), cpp)
...
@@ -39,6 +46,13 @@ ifeq ($(LANGUAGE), cpp)
$(
CPPC
)
$(
CPPFLAGS
)
-o
$@
.exec
$@
.cpp
-ftemplate-depth
=
16000
$(
CPPC
)
$(
CPPFLAGS
)
-o
$@
.exec
$@
.cpp
-ftemplate-depth
=
16000
./
$@
.exec
$(
STRATEGY
)
$(
THREADS
)
$(
CACHING
)
./
$@
.exec
$(
STRATEGY
)
$(
THREADS
)
$(
CACHING
)
endif
endif
ifeq
($(LANGUAGE), ts)
%
:
java
-jar
B2Program-all-0.1.0-SNAPSHOT.jar
$(
TS_CODE_GEN_FLAGS
)
-f
$(
DIRECTORY
)
/
$@
.mch
@
if
[
"
$(
DIRECTORY
)
"
!=
"."
]
;
then
cp
$(
DIRECTORY
)
/
*
.ts .
;
fi
$(
TSC
)
$(
TSCFLAGS
)
$@
.ts
node
$@
.js
$(
STRATEGY
)
$(
THREADS
)
$(
CACHING
)
endif
ifneq
(,$(findstring $(LANGUAGE), rs|RS|rust|Rust))
ifneq
(,$(findstring $(LANGUAGE), rs|RS|rust|Rust))
%
:
%
:
java
-jar
B2Program-all-0.1.0-SNAPSHOT.jar
$(
RS_CODE_GEN_FLAGS
)
-f
$(
DIRECTORY
)
/
$@
.mch
java
-jar
B2Program-all-0.1.0-SNAPSHOT.jar
$(
RS_CODE_GEN_FLAGS
)
-f
$(
DIRECTORY
)
/
$@
.mch
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment