~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/cmake/target_html/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
cmake_minimum_required(VERSION 2.8)
2
2
 
3
 
project(hello_world_gles.html)
 
3
project(hello_world_gles)
4
4
 
5
5
file(GLOB sourceFiles ../../hello_world_gles.c)
6
6
 
10
10
        SET(linkFlags "-O2")
11
11
endif()
12
12
 
13
 
add_executable(hello_world_gles.html ${sourceFiles})
14
 
set_target_properties(hello_world_gles.html PROPERTIES LINK_FLAGS "${linkFlags}")
 
13
SET(CMAKE_EXECUTABLE_SUFFIX ".html")
 
14
 
 
15
add_executable(hello_world_gles ${sourceFiles})
 
16
set_target_properties(hello_world_gles PROPERTIES LINK_FLAGS "${linkFlags}")
 
17
 
 
18
# Validating asm.js requires SpiderMonkey JS VM - detect its presence via the SPIDERMONKEY environment variable.
 
19
if (DEFINED ENV{SPIDERMONKEY} AND CMAKE_BUILD_TYPE STREQUAL Release)
 
20
        em_validate_asmjs_after_build(hello_world_gles)
 
21
endif()