diff --git a/alethzero/DappLoader.cpp b/alethzero/DappLoader.cpp
index 6ac1afbcb..7c754f8f5 100644
--- a/alethzero/DappLoader.cpp
+++ b/alethzero/DappLoader.cpp
@@ -82,7 +82,7 @@ DappLocation DappLoader::resolveAppUri(QString const& _uri)
}
string32 urlHintName = ZeroString32;
- QByteArray utf8 = QString("UrlHint").toUtf8();
+ QByteArray utf8 = QString("urlhint").toUtf8();
std::copy(utf8.data(), utf8.data() + utf8.size(), urlHintName.data());
Address urlHint = abiOut
(web3()->ethereum()->call(m_nameReg, abiIn("addr(bytes32)", urlHintName)).output);
diff --git a/cmake/EthUtils.cmake b/cmake/EthUtils.cmake
index 69690156a..a426b1218 100644
--- a/cmake/EthUtils.cmake
+++ b/cmake/EthUtils.cmake
@@ -62,3 +62,20 @@ macro(eth_add_test NAME)
endmacro()
+# Creates C resources file from files
+function(eth_add_resources RESOURCE_FILE OUT_FILE)
+ include("${RESOURCE_FILE}")
+ set(OUTPUT "${ETH_RESOURCE_LOCATION}/${ETH_RESOURCE_NAME}.hpp")
+ set(${OUT_FILE} "${OUTPUT}" PARENT_SCOPE)
+
+ set(filenames "${RESOURCE_FILE}")
+ list(APPEND filenames "${ETH_SCRIPTS_DIR}/resources.cmake")
+ foreach(resource ${ETH_RESOURCES})
+ list(APPEND filenames "${${resource}}")
+ endforeach(resource)
+
+ add_custom_command(OUTPUT ${OUTPUT}
+ COMMAND ${CMAKE_COMMAND} -DETH_RES_FILE="${RESOURCE_FILE}" -P "${ETH_SCRIPTS_DIR}/resources.cmake"
+ DEPENDS ${filenames}
+ )
+endfunction()
diff --git a/cmake/scripts/resource.hpp.in b/cmake/scripts/resource.hpp.in
new file mode 100644
index 000000000..6a9740616
--- /dev/null
+++ b/cmake/scripts/resource.hpp.in
@@ -0,0 +1,30 @@
+// this file is autogenerated, do not modify!!!
+#pragma once
+
+#include
+#include