Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d8e05c3
Showing
303 changed files
with
21,474 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
######################################## | ||
# USER VARIABLES | ||
EXE = dopa.exe | ||
ifdef SystemRoot | ||
RUN_CMD = $(EXE) | ||
else | ||
RUN_CMD = ./$(EXE) | ||
endif | ||
|
||
PACKNAME = | ||
SRC = | ||
PCKDIR = ./plugins/ | ||
PCK = | ||
PLUGIN = | ||
PLUGINDIR = | ||
OTHER_DEPENDS = resources/* | ||
CONF_FILE = opa.conf | ||
|
||
#Compiler variables | ||
OPACOMPILER ?= opa | ||
FLAG = --opx-dir _build --import-package stdlib.database.mongo | ||
PORT = 8080 | ||
|
||
RUN_OPT = | ||
|
||
default: exe | ||
|
||
run: exe | ||
$(RUN_CMD) $(RUN_OPT) || true | ||
|
||
include Makefile.common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
######################################## | ||
# MAKEFILE VARIABLES | ||
OPACOMPILER ?= opa | ||
OPA = $(OPACOMPILER) $(FLAG) $(OPAOPT) | ||
PWD ?= $(shell pwd) | ||
BUILDDIR ?= _build | ||
export BUILDDIR | ||
OPAGENAPI ?= $(OPACOMPILER) --api-only | ||
DEPENDS = $(SRC) $(PCK:%=$(BUILDDIR)/%) $(PLUGIN:%=$(BUILDDIR)/%) | ||
|
||
ifdef CONF_FILE | ||
CONFIG = --conf $(CONF_FILE) --conf-opa-files | ||
else | ||
CONFIG = | ||
endif | ||
|
||
ifdef SystemRoot | ||
RM = rmdir /s /q | ||
RMFILE = del /s /q | ||
else | ||
RM = rm -rf | ||
RMFILE = rm | ||
endif | ||
|
||
# Hack to bypass the lack of "make -p" on Windows: | ||
_ = $(shell mkdir _build 2>/dev/null) | ||
|
||
######################################## | ||
# MAIN RULE | ||
exe : $(EXE) | ||
pack : $(PACKNAME) | ||
|
||
######################################## | ||
# MAIN PACKAGE BUILDING | ||
$(PACKNAME) : $(BUILDDIR)/$(PACKNAME) | ||
|
||
$(BUILDDIR)/$(PACKNAME) : $(DEPENDS) | ||
@echo "### Building package $(PACKNAME)" | ||
$(OPA) --autocompile $(SRC) $(PLUGIN:%=$(BUILDDIR)/%) --build-dir $(BUILDDIR) -I $(BUILDDIR) $(OPAOPT) | ||
$(RM) $(BUILDDIR)/$(PACKNAME) | ||
@mv $(PACKNAME) $(BUILDDIR)/ | ||
|
||
######################################## | ||
# SUBS PACKAGE/PLUGIN BUILDING | ||
$(BUILDDIR)/%.opx : | ||
make $(@:$(BUILDDIR)/%.opx=-C $(PCKDIR)/%) pack | ||
|
||
$(BUILDDIR)/%.opp : | ||
make $(@:$(BUILDDIR)/%.opp=-C $(PLUGINDIR)/%) | ||
|
||
######################################## | ||
# EXECUTABLE BUILDING | ||
$(EXE) : pack $(SRC) $(MAINSRC) $(DEPENDS) $(OTHER_DEPENDS) | ||
@echo "### Building executable $(EXE) " | ||
$(OPA) $(COMPILOPT) $(MAINSRC) $(CONFIG) $(PLUGIN:%=$(BUILDDIR)/%) -o $@ --build-dir $(BUILDDIR)/$(EXE) | ||
|
||
$(EXE:%.exe=%.run) : $(EXE) | ||
./$(EXE) -p $(PORT) | ||
|
||
######################################## | ||
# Used by recursives makefile | ||
pack.depends : | ||
@echo $(PCK) $(PLUGIN) | ||
|
||
######################################## | ||
# CLEANING | ||
clean :: | ||
@$(PCK:%.opx=make -C $(PCKDIR)/% clean &&) $(PLUGIN:%.opp=make -C $(PLUGINDIR)/% clean &&) echo "### Cleaning $(BUILDDIR)"; | ||
$(RM) $(BUILDDIR) 2>/dev/null | ||
$(RMFILE) $(EXE) 2>/dev/null | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file is part of Opa. http://opalang.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require("opa-js-runtime-cps"); | ||
var __opa_opabsl = require("opabsl.opp"); | ||
|
||
require("dopa.controller.opx"); | ||
var ___server_ast = BslCps_topwait(___register_server_code_ec6de8cf({package_:"",adhoc_e:[{td:[],rd:[],r:[true],id:["`_v1_Server_private_run_services_stdlib.core.web.server`"],i:{some:"_v1_run_services"},d:js_void,c:{none:js_void}}]},cont(BslCps_topk))); | ||
var ___run_services = BslCps_topwait(___run_services_b970f080(cont(BslCps_topk))); | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# dopa.controller.opx | ||
This is a module generated by Opa compiler (1.1.0) | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"dopa.controller.opx","version":"1.1.0","main":"main.js","dependencies":{"opabsl.opp":"1.1.0","opa-js-runtime-cps":"1.1.0","dopa.view.opx":"1.1.0"}} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+29 Bytes
_build/dopa.controller.opx/pass_ExplicitInstantiation_lifting_client
Binary file not shown.
Binary file added
BIN
+105 Bytes
_build/dopa.controller.opx/pass_ExplicitInstantiation_lifting_server
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# dopa.model.opx | ||
This is a module generated by Opa compiler (1.1.0) | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"dopa.model.opx","version":"1.1.0","main":"main.js","dependencies":{"stdlib.database.mongo.opx":"1.1.0","opabsl.opp":"1.1.0","opa-js-runtime-cps":"1.1.0"}} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# dopa.view.opx | ||
This is a module generated by Opa compiler (1.1.0) | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.