Files
cappuccino/Tests/Manual/CPCursorTest/Jakefile
T
David Richardson 53784f0e10 Migrate subsidiary test Jakefiles to @objj/jake toolchain
Applies the transformation script across all applications in the Tests/Manual directory to eliminate Narwhal-era dependencies and establish compatibility with the modern Node-based runner.

* Removes explicit `require("jake")` calls in favor of the injected JAKE global.
* Replaces legacy `cappuccino/jake` application instantiation with the `CAPPUCCINO.Jake.applicationtask.app` hook.
* Substitutes archaic `system`, `file`, and `os` API calls with native Node `child_process`, `fs`, and `path` modules.
* Corrects package paths for nativehost deployment targets.
2026-09-08 19:08:43 -06:00

39 lines
1.2 KiB
JavaScript

/*
* Jakefile
* CPCursorTest
*
* Created by You on November 6, 2009.
* Copyright 2009, Your Company All rights reserved.
*/
var ENV = process.env, cp = require("child_process"), fs = require("fs"), path = require("path");,
FILE = require("file"),
task = require("jake").task,
FileList = require("jake").FileList,
app = CAPPUCCINO.Jake.applicationtask.app,
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug";
app ("CPCursorTest", function(task)
{
task.setBuildIntermediatesPath(path.join("Build", "CPCursorTest.build", configuration));
task.setBuildPath(path.join("Build", configuration));
task.setProductName("CPCursorTest");
task.setIdentifier("com.yourcompany.CPCursorTest");
task.setVersion("1.0");
task.setAuthor("Your Company");
task.setEmail("feedback @nospam@ yourcompany.com");
task.setSummary("CPCursorTest");
task.setSources(new FileList("**/*.j"));
task.setResources(new FileList("Resources/*"));
task.setIndexFilePath("index.html");
task.setInfoPlistPath("Info.plist");
if (configuration === "Debug")
task.setCompilerFlags("-DDEBUG -g");
else
task.setCompilerFlags("-O");
});
task ("default", ["CPCursorTest"]);