Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cambio a pandoc #3

Merged
merged 27 commits into from
Jan 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ddc67fb
Progreso
Asmilex Jan 9, 2022
4e49488
Progreso
Asmilex Jan 9, 2022
a6ce76b
[📓] Usamos la plantilla eisvogel
Asmilex Jan 10, 2022
1f53de1
{:notebook:] Actualizo README con las fuentes
Asmilex Jan 10, 2022
805d7b6
[:notebook:] Los cambios en la documentación se compilan al guardar
Asmilex Jan 16, 2022
ded6574
[:notebook:] Modificado footer para incluir solo la página
Asmilex Jan 16, 2022
30b2748
[:notebook:] Configuración de spellchecker
Asmilex Jan 17, 2022
ce7dc58
[:notebook:] Crimson Pro Regular -> Fraunces Light
Asmilex Jan 17, 2022
8f062eb
[:notebook:] Añado bibliografía que quité por el camino
Asmilex Jan 28, 2022
c0fbacc
[:notebook:] Reestructuro capítulos de ejemplo
Asmilex Jan 28, 2022
b7c7a2c
[:notebook:] Sigo actualizando la bibliografía
Asmilex Jan 28, 2022
dd8e797
[:notebook:] Empiezo a trabajar en la renderización a HTML (#5)
Asmilex Jan 29, 2022
27bb09a
[:notebook:] Reestructuro archivos #5
Asmilex Jan 29, 2022
90dc79e
[:notebook:] Actualizo makefile en acorde a lo anterior (#5)
Asmilex Jan 29, 2022
e373d44
[:notebook:] Muevo `date` del yaml
Asmilex Jan 29, 2022
61a2a48
[:notebook:] Trabajando en github pages :construction:
Asmilex Jan 29, 2022
4c7aae6
[:notebook:] :construction:
Asmilex Jan 29, 2022
549eadd
[:notebook:] Mueve bibliografía a chapters
Asmilex Jan 29, 2022
1ac6e63
[:notebook:] Actualiza README
Asmilex Jan 29, 2022
54bcf05
[:notebook:] typo
Asmilex Jan 29, 2022
112919a
[:notebook:] Añado `--mathjax` al makefile
Asmilex Jan 29, 2022
e3ae5c9
[:notebook:] Usamos Rubik y Fraunces en la web (#4)
Asmilex Jan 29, 2022
b4a548c
[:notebook:] Uso de Prism.js para syntax hightlighting (#5)
Asmilex Jan 29, 2022
1fe43ad
[:notebook:] Usa tema claro de Bamboo (#5)
Asmilex Jan 29, 2022
4d483fc
[:notebook:] Mejorado TOC (#5)
Asmilex Jan 29, 2022
e23c8a8
[:notebook:] Cambio en el estilo de h2, h3 (#5)
Asmilex Jan 29, 2022
0f9b8b8
[::wrench:] Se construye automáticamente la web en vez de todo.
Asmilex Jan 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{
"triggerTaskOnSave.on": true,
"triggerTaskOnSave.tasks": {
"Documentation (web)": [
"docs/chapters/*.md",
"docs/headers/*.md"
],
},

"files.associations": {
"algorithm": "cpp",
"atomic": "cpp",
Expand Down Expand Up @@ -45,5 +53,14 @@
"xstring": "cpp",
"xtr1common": "cpp",
"xutility": "cpp"
}
},
"spellright.language": [
"en",
"es"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext"
]
}
64 changes: 62 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"label": "Compile debug RT in one weekend",
"command": "cmake",
"type": "shell",
"args": ["--build", "."],
"args": [
"--build",
"."
],
"options": {
"cwd": "${workspaceFolder}/RT_in_one_weekend/build/"
}
Expand All @@ -14,10 +17,67 @@
"label": "Compile release RT in one weekend",
"command": "cmake",
"type": "shell",
"args": ["--build", ".", "--config", "Release"],
"args": [
"--build",
".",
"--config",
"Release"
],
"options": {
"cwd": "${workspaceFolder}/RT_in_one_weekend/build/"
}
},
{
"label": "Documentation (all)",
"command": "wsl.exe",
"type": "shell",
"args": [
"make",
"PANDOC_EXEC=pandoc.exe"
],
"options": {
"cwd": "${workspaceFolder}/docs/"
},
"runOptions": {
"runOn": "folderOpen",
"instanceLimit": 1
},
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": []
},
{
"label": "Documentation (web)",
"command": "wsl.exe",
"type": "shell",
"args": [
"make",
"PANDOC_EXEC=pandoc.exe",
"web"
],
"options": {
"cwd": "${workspaceFolder}/docs/"
},
"runOptions": {
"runOn": "folderOpen",
"instanceLimit": 1
},
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
"problemMatcher": []
}

]
}
75 changes: 72 additions & 3 deletions application/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,80 @@
cmake_minimum_required(VERSION 3.0.0)
project(TFG_VkRay VERSION 0.1.0)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})

include(CTest)
enable_testing()

add_executable(TFG_VkRay main.cpp)
set(MY_PROJECT_DEPENDENCIES Vulkan glfw3 GLM) # Añadir dependencias necesarias

# Buscar e instalar las dependencias anteriores
# Si no existe, se descargará vcpkg en la carpeta de usuario.
if(NOT DEFINED ${CMAKE_TOOLCHAIN_FILE})
if(NOT DEFINED ENV{VCPKG_ROOT})
if(WIN32)
set(VCPKG_ROOT $ENV{HOMEDRIVE}$ENV{HOMEPATH}/vcpkg)
else()
set(VCPKG_ROOT $ENV{HOME}/.vcpkg)
endif()
else()
set(VCPKG_ROOT $ENV{VCPKG_ROOT})
endif()

if(NOT EXISTS ${VCPKG_ROOT})
message("Cloning vcpkg in ${VCPKG_ROOT}")
execute_process(COMMAND git clone https://github.com/Microsoft/vcpkg.git ${VCPKG_ROOT})
# If a reproducible build is desired (and potentially old libraries are # ok), uncomment the
# following line and pin the vcpkg repository to a specific githash.
# execute_process(COMMAND git checkout 745a0aea597771a580d0b0f4886ea1e3a94dbca6 WORKING_DIRECTORY ${VCPKG_ROOT})
else()
# The following command has no effect if the vcpkg repository is in a detached head state.
message("Auto-updating vcpkg in ${VCPKG_ROOT}")
execute_process(COMMAND git pull WORKING_DIRECTORY ${VCPKG_ROOT})
endif()

if(NOT EXISTS ${VCPKG_ROOT}/README.md)
message(FATAL_ERROR "***** FATAL ERROR: Could not clone vcpkg *****")
endif()

if(WIN32)
set(BOOST_INCLUDEDIR ${VCPKG_ROOT}/installed/x86-windows/include) # NOTE la implementación inicial utilizaba boost. Quizás haga falta esto, lo dejaré por si acaso.
set(VCPKG_EXEC ${VCPKG_ROOT}/vcpkg.exe)
set(VCPKG_BOOTSTRAP ${VCPKG_ROOT}/bootstrap-vcpkg.bat)
else()
set(VCPKG_EXEC ${VCPKG_ROOT}/vcpkg)
set(VCPKG_BOOTSTRAP ${VCPKG_ROOT}/bootstrap-vcpkg.sh)
endif()

if(NOT EXISTS ${VCPKG_EXEC})
message("Bootstrapping vcpkg in ${VCPKG_ROOT}")
execute_process(COMMAND ${VCPKG_BOOTSTRAP} WORKING_DIRECTORY ${VCPKG_ROOT})
endif()

if(NOT EXISTS ${VCPKG_EXEC})
message(FATAL_ERROR "***** FATAL ERROR: Could not bootstrap vcpkg *****")
endif()

set(CMAKE_TOOLCHAIN_FILE ${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake CACHE STRING "")

message(STATUS "***** Checking project third party dependencies in ${VCPKG_ROOT} *****")
execute_process(COMMAND ${VCPKG_EXEC} install ${MY_PROJECT_DEPENDENCIES} --triplet x64-windows WORKING_DIRECTORY ${VCPKG_ROOT})
else()
message(STATUS "***** Checking project third party dependencies in ${VCPKG_ROOT} *****")
execute_process(COMMAND ${VCPKG_ROOT}/vcpkg.exe install ${MY_PROJECT_DEPENDENCIES} --triplet x64-windows WORKING_DIRECTORY ${VCPKG_ROOT})
endif()


# Buscar librerías
find_package(Vulkan REQUIRED)
find_package(glfw3 CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)

add_executable(TFG_VkRay src/main.cpp)

# Especificar ¿Ejecutable? ¿Proyecto? utiliza Vulkan. Cambiar vulkaninfo por lo correspondiente.
target_compile_definitions(TFG_VkRay PRIVATE VK_USE_PLATFORM_WIN32_KHR)
target_link_libraries(TFG_VkRay Vulkan::Vulkan PRIVATE glfw GLM::glm)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
5 changes: 0 additions & 5 deletions application/main.cpp

This file was deleted.

Loading