Skip to content

Commit

Permalink
Updated to new toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
David Peek committed Aug 17, 2015
1 parent 36c5397 commit 122dc4e
Show file tree
Hide file tree
Showing 44 changed files with 226 additions and 519 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ TestSuite.hx
/lib/

.haxelib
/haxelib.json
1 change: 1 addition & 0 deletions .hvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HAXE=3.2.0
6 changes: 3 additions & 3 deletions .munit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version=0.9.4.1
src=test
src=src/test
bin=bin/test
report=bin/test-report
hxml=test/targets.hxml
classPaths=src
hxml=arg/test.hxml
classPaths=src/lib
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012 Massive Interactive
Copyright (c) 2012-2015 Massive Interactive

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 19 additions & 0 deletions arg/example.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
-main ConsoleExample
-lib mconsole
-cp src/example

--each

-js bin/example/javascript.js

--next

-swf bin/example/flash.swf

--next

-neko bin/example/neko.n

--next

-cpp bin/example/native
4 changes: 4 additions & 0 deletions arg/haxelib.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-cp src/build
--macro Haxelib.run()
-lib mdk-core
-D output=bin/haxelib
20 changes: 8 additions & 12 deletions test/targets.hxml → arg/test.hxml
Original file line number Diff line number Diff line change
@@ -1,46 +1,42 @@
# Flash 9+
-main TestMain
-lib munit
-lib hamcrest
-cp src
-cp test
-cp src/lib
-cp src/test
-swf-version 9
-swf bin/test/as3_test.swf
-debug

--next

# JavaScript
-main TestMain
-lib munit
-lib hamcrest
-cp src
-cp src/lib
-debug

-cp test
-cp src/test
-js bin/test/js_test.js


--next

# Neko
-main TestMain
-lib munit
-lib hamcrest
-cp src
-cp src/lib
-debug

-cp test
-cp src/test
-neko bin/test/neko_test.n


--next

# CPP
-main TestMain
-lib munit
-lib hamcrest
-cp src
-cp test
-cp src/lib
-cp src/test
-debug
-cpp bin/test/cpp_test
83 changes: 0 additions & 83 deletions build/Build.hx

This file was deleted.

File renamed without changes.
21 changes: 0 additions & 21 deletions example/build.hxml

This file was deleted.

19 changes: 19 additions & 0 deletions haxelib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "minject",
"license": "MIT",
"tags": [
"cross",
"utility",
"massive",
"sys"
],
"classPath": "src/lib",
"description": "A cross platform Haxe implementation of the WebKit console API supporting logging, debugging and profiling. Currently supports AVM2, JS, C++ and Neko.",
"contributors": [
"massive"
],
"releasenote": "See https://github.com/massiveinteractive/mconsole/blob/master/doc/changes.md",
"version": "1.6.1",
"url": "https://github.com/massiveinteractive/mconsole",
"dependencies": {}
}
11 changes: 0 additions & 11 deletions lib.json

This file was deleted.

10 changes: 0 additions & 10 deletions mdk/info.config

This file was deleted.

33 changes: 33 additions & 0 deletions mdk/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "mconsole",
"version": "1.6.1",
"dependencies":
[
{
"name": "mcover",
"version": "^2.0.0",
"development": true
},
{
"name": "hamcrest",
"version": "^1.0.0",
"development": true
},
{
"name": "munit",
"version": "^2.0.0",
"development": true
},
{
"name": "hxcpp",
"version": "^3.1.0",
"source": "haxelib",
"development": true
},
{
"name": "mdk-core",
"version": "master",
"development": true
}
]
}
10 changes: 0 additions & 10 deletions mdk/lib.config

This file was deleted.

13 changes: 13 additions & 0 deletions mdk/lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"mlib": "2.0.2",
"msys": "1.2.2",
"mcover": "2.1.1",
"hamcrest": "1.2.1",
"msignal": "1.2.3",
"mconsole": "1.6.1",
"mcore": "1.3.13",
"mdk-core": "073c62f",
"mtask": "2.1.2",
"munit": "2.1.1",
"hxcpp": "3.2.102"
}
23 changes: 0 additions & 23 deletions project.json

This file was deleted.

26 changes: 0 additions & 26 deletions src/Console.hx

This file was deleted.

28 changes: 28 additions & 0 deletions src/build/Haxelib.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// See the file "LICENSE" for the full license governing this code

import sys.io.File;

import haxe.Json;
import haxe.macro.Context;

import mdk.sys.SysApi;

class Haxelib
{
static function run()
{
var jsonPath = 'haxelib.json';

var json = Json.parse(File.getContent(jsonPath));
var info = Json.parse(File.getContent('mdk/info.json'));
json.version = info.version;
File.saveContent(jsonPath, Json.stringify(json, null, '\t') + '\n');

var path = Context.definedValue('output');
SysApi.createDirectory(path);
SysApi.copy('LICENSE', '$path/LICENSE');
SysApi.copy('src/lib', '$path/src/lib');
SysApi.copy(jsonPath, '$path/$jsonPath');
SysApi.zip(path, '$path.zip', '$path/');
}
}
Loading

0 comments on commit 122dc4e

Please sign in to comment.