-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[collada-dom] fix emscripten build (#29562)
* add patch * . * update-hash * fix * reformat * fix hash * remove-patch-prefix * upd-hash * upd * . * Update ports/collada-dom/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update ports/collada-dom/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update ports/collada-dom/portfile.cmake Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update ports/collada-dom/vcpkg.json Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * Update collada-dom.json * Update collada-dom.json * fix --------- Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
49 additions
and
12 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,23 @@ | ||
diff --git a/dom/src/dae/daeUtils.cpp b/dom/src/dae/daeUtils.cpp | ||
index 7e3dc9a..dc94b5b 100644 | ||
--- a/dom/src/dae/daeUtils.cpp | ||
+++ b/dom/src/dae/daeUtils.cpp | ||
@@ -152,7 +152,7 @@ char cdom::getFileSeparator() { | ||
const string& cdom::getSystemTmpDir() { | ||
#ifdef WIN32 | ||
static string tmpDir = string(getenv("TMP")) + getFileSeparator(); | ||
-#elif defined(__linux__) || defined(__linux) | ||
+#elif defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) | ||
static string tmpDir = "/tmp/"; | ||
#elif defined __APPLE_CC__ | ||
static string tmpDir = string(getenv("TMPDIR")); | ||
@@ -171,7 +171,7 @@ string cdom::getRandomFileName() { | ||
std::string tmp(tmpnam(&tmpbuffer[0])); | ||
#ifdef WIN32 | ||
randomSegment = tmp.substr(tmp.find_last_of('\\')+1); | ||
-#elif defined(__linux__) || defined(__linux) | ||
+#elif defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__) | ||
randomSegment = tmp.substr(tmp.find_last_of('/')+1); | ||
#elif defined __APPLE_CC__ | ||
randomSegment = tmp.substr(tmp.find_last_of('/')+1); | ||
|
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
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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
{ | ||
"name": "collada-dom", | ||
"version-string": "2.5.0", | ||
"port-version": 6, | ||
"version": "2.5.0", | ||
"port-version": 7, | ||
"description": "The COLLADA Document Object Model (DOM) is an application programming interface (API) that provides a C++ object representation of a COLLADA XML instance document.", | ||
"homepage": "https://github.com/rdiankov/collada-dom", | ||
"license": null, | ||
"dependencies": [ | ||
"boost-filesystem", | ||
"boost-system", | ||
"libxml2", | ||
"minizip", | ||
"pcre", | ||
"uriparser", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
}, | ||
"zlib" | ||
] | ||
} |
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
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