Skip to content

Commit

Permalink
rooms working with pwd, no doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ticup committed Jan 8, 2013
0 parents commit d8e05c3
Show file tree
Hide file tree
Showing 303 changed files with 21,474 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Makefile
@@ -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
72 changes: 72 additions & 0 deletions Makefile.common
@@ -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


1 change: 1 addition & 0 deletions _build/README.md
@@ -0,0 +1 @@
This file is part of Opa. http://opalang.org
7 changes: 7 additions & 0 deletions _build/a.js
@@ -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 added _build/dopa.controller.opx/BslLoading
Binary file not shown.
Binary file added _build/dopa.controller.opx/CheckOptionsConsistency
Binary file not shown.
Binary file added _build/dopa.controller.opx/DbEngineImporation
Binary file not shown.
Binary file added _build/dopa.controller.opx/JavascriptCompilation
Binary file not shown.
3 changes: 3 additions & 0 deletions _build/dopa.controller.opx/README.md
@@ -0,0 +1,3 @@
# dopa.controller.opx
This is a module generated by Opa compiler (1.1.0)

Binary file added _build/dopa.controller.opx/ResolveRemoteCalls
Binary file not shown.
Binary file not shown.
Binary file added _build/dopa.controller.opx/check_server_entry_point
Binary file not shown.
Binary file added _build/dopa.controller.opx/consistency_check
Binary file not shown.
Binary file added _build/dopa.controller.opx/funactionlifting
Binary file not shown.
Binary file added _build/dopa.controller.opx/imp_Inlining_js
Binary file not shown.
Binary file added _build/dopa.controller.opx/imp_Inlining_nodejs
Binary file not shown.
Binary file added _build/dopa.controller.opx/imp_Sharing_js
Binary file not shown.
Binary file added _build/dopa.controller.opx/imp_Sharing_nodejs
Binary file not shown.
21 changes: 21 additions & 0 deletions _build/dopa.controller.opx/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions _build/dopa.controller.opx/package.json
@@ -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 added _build/dopa.controller.opx/pass_CodingDirectives
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_DbSchemaGeneration
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 added _build/dopa.controller.opx/pass_GenerateServerAst
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_LambdaLifting_client
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_LambdaLifting_server
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_MacroExpansion
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_SimplifyEquality
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_SimplifyMagic
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_Slicing
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_TypeDefinition
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_Typing
Binary file not shown.
Binary file added _build/dopa.controller.opx/pass_TypingExceptions
Binary file not shown.
Binary file not shown.
Binary file added _build/dopa.controller.opx/qmlCpsRewriter_server
Binary file not shown.
Binary file added _build/dopa.controller.opx/qmlSimpleSlicerEffect
Binary file not shown.
Binary file added _build/dopa.controller.opx/renaming_exp
Binary file not shown.
Binary file not shown.
Binary file added _build/dopa.controller.opx/renaming_type
Binary file not shown.
Binary file added _build/dopa.controller.opx/undot
Binary file not shown.
Binary file added _build/dopa.model.opx/BslLoading
Binary file not shown.
Binary file added _build/dopa.model.opx/CheckOptionsConsistency
Binary file not shown.
Binary file added _build/dopa.model.opx/DbEngineImporation
Binary file not shown.
Binary file added _build/dopa.model.opx/JavascriptCompilation
Binary file not shown.
3 changes: 3 additions & 0 deletions _build/dopa.model.opx/README.md
@@ -0,0 +1,3 @@
# dopa.model.opx
This is a module generated by Opa compiler (1.1.0)

Binary file added _build/dopa.model.opx/ResolveRemoteCalls
Binary file not shown.
Binary file added _build/dopa.model.opx/ServerJavascriptOptimization
Binary file not shown.
Binary file added _build/dopa.model.opx/check_server_entry_point
Binary file not shown.
Binary file added _build/dopa.model.opx/consistency_check
Binary file not shown.
Binary file added _build/dopa.model.opx/funactionlifting
Binary file not shown.
Binary file added _build/dopa.model.opx/imp_Inlining_js
Binary file not shown.
Binary file added _build/dopa.model.opx/imp_Inlining_nodejs
Binary file not shown.
Binary file added _build/dopa.model.opx/imp_Sharing_js
Binary file not shown.
Binary file added _build/dopa.model.opx/imp_Sharing_nodejs
Binary file not shown.
226 changes: 226 additions & 0 deletions _build/dopa.model.opx/main.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions _build/dopa.model.opx/package.json
@@ -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 added _build/dopa.model.opx/pass_CodingDirectives
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_DbSchemaGeneration
Binary file not shown.
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_ExplicitInstantiation
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_GenerateServerAst
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_LambdaLifting_client
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_LambdaLifting_server
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_MacroExpansion
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_SimplifyEquality
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_SimplifyMagic
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_Slicing
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_TypeDefinition
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_Typing
Binary file not shown.
Binary file added _build/dopa.model.opx/pass_TypingExceptions
Binary file not shown.
Binary file not shown.
Binary file added _build/dopa.model.opx/qmlCpsRewriter_server
Binary file not shown.
Binary file added _build/dopa.model.opx/qmlSimpleSlicerEffect
Binary file not shown.
Binary file added _build/dopa.model.opx/renaming_exp
Binary file not shown.
Binary file added _build/dopa.model.opx/renaming_opamaptoident
Binary file not shown.
Binary file added _build/dopa.model.opx/renaming_type
Binary file not shown.
Binary file added _build/dopa.model.opx/undot
Binary file not shown.
Binary file added _build/dopa.view.opx/BslLoading
Binary file not shown.
Binary file added _build/dopa.view.opx/CheckOptionsConsistency
Binary file not shown.
Binary file added _build/dopa.view.opx/DbEngineImporation
Binary file not shown.
Binary file added _build/dopa.view.opx/JavascriptCompilation
Binary file not shown.
3 changes: 3 additions & 0 deletions _build/dopa.view.opx/README.md
@@ -0,0 +1,3 @@
# dopa.view.opx
This is a module generated by Opa compiler (1.1.0)

Binary file added _build/dopa.view.opx/ResolveRemoteCalls
Binary file not shown.
Binary file added _build/dopa.view.opx/ServerJavascriptOptimization
Binary file not shown.
Binary file added _build/dopa.view.opx/check_server_entry_point
Binary file not shown.
Binary file added _build/dopa.view.opx/consistency_check
Binary file not shown.
Binary file added _build/dopa.view.opx/funactionlifting
Binary file not shown.
Binary file added _build/dopa.view.opx/imp_Inlining_js
Binary file not shown.
Binary file added _build/dopa.view.opx/imp_Inlining_nodejs
Binary file not shown.
Binary file added _build/dopa.view.opx/imp_Sharing_js
Binary file not shown.
Binary file added _build/dopa.view.opx/imp_Sharing_nodejs
Binary file not shown.

0 comments on commit d8e05c3

Please sign in to comment.