Skip to content

Commit

Permalink
Rename Browser as 'Sample 8 - Web Browser'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjs committed Oct 28, 2020
1 parent d2f141e commit 982539f
Show file tree
Hide file tree
Showing 22 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ if (PORT MATCHES "UltralightLinux")
SET(CMAKE_INSTALL_RPATH "$\{ORIGIN\}")
endif ()

add_subdirectory("Browser")
add_subdirectory("Sample 1 - Render to PNG")
add_subdirectory("Sample 2 - Basic App")
add_subdirectory("Sample 3 - Resizable App")
add_subdirectory("Sample 4 - JavaScript")
add_subdirectory("Sample 5 - File Loading")
add_subdirectory("Sample 6 - Intro to C API")
add_subdirectory("Sample 7 - OpenGL Integration")
add_subdirectory("Sample 8 - Web Browser")

if (${IN_SOURCE_BUILD})
add_custom_target(
Expand Down Expand Up @@ -85,12 +85,12 @@ if (${IN_SOURCE_BUILD})
)
endif ()

add_dependencies(Browser CopySDK)
add_dependencies(Sample1 CopySDK)
add_dependencies(Sample2 CopySDK)
add_dependencies(Sample3 CopySDK)
add_dependencies(Sample4 CopySDK)
add_dependencies(Sample5 CopySDK)
add_dependencies(Sample6 CopySDK)
add_dependencies(Sample7 CopySDK)
add_dependencies(Sample8 CopySDK)
endif ()
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(APP_NAME Browser)
set(APP_NAME Sample8)
include_directories("${ULTRALIGHT_INCLUDE_DIR}")
link_directories("${ULTRALIGHT_LIBRARY_DIR}")
link_libraries(UltralightCore AppCore Ultralight WebCore)
Expand Down Expand Up @@ -45,6 +45,9 @@ if (APPLE)
# Copy resources to resources directory
add_custom_command(TARGET ${APP_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "${WEBCORE_DIR}/bin/resources/" "$<TARGET_FILE_DIR:${APP_NAME}>/../Resources/resources")
endif ()


# Resources directory is also copied to target directory in the "Copy all binaries" step.
# Remove this duplicate directory.
add_custom_command(TARGET ${APP_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove_directory "$<TARGET_FILE_DIR:${APP_NAME}>/resources")
endif ()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ <h4>Overview of Major Changes</h4>
<li>Added support for <code>&lt;input type=&quot;range&quot;&gt;</code></li>
<li>Added support for <code>&lt;progress&gt;</code></li>
<li>Added support for <code>&lt;a target=&quot;_blank&quot;&gt;</code> and <code>window.open()</code></li>
<li>Added support for HTML5 IndexedDB</li>
</ul>
</li>
<li><strong>Sharper rendering at all DPIs</strong>
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Browser::Browser() {

window_ = Window::Create(app_->main_monitor(), 1024, 768, false,
kWindowFlags_Resizable | kWindowFlags_Titled | kWindowFlags_Maximizable);
window_->SetTitle("Ultralight Sample - Browser");
window_->SetTitle("Ultralight Sample 8 - Web Browser");
app_->set_window(*window_.get());

// Create the UI
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 982539f

Please sign in to comment.