Commit e5a7f518 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Added JTNL package for Julia.

parent 95c7ff96
Loading
Loading
Loading
Loading

src/JTNL/Manifest.toml

0 → 100644
+42 −0
Original line number Diff line number Diff line
# This file is machine-generated - editing it directly is not advised

[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

[[BinaryProvider]]
deps = ["Libdl", "Logging", "SHA"]
git-tree-sha1 = "ecdec412a9abc8db54c0efc5548c64dfce072058"
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
version = "0.5.10"

[[Cxx]]
deps = ["BinaryProvider", "Libdl", "REPL"]
git-tree-sha1 = "30e85903171035f6816142d528daed4ce1fcc209"
repo-rev = "master"
repo-url = "https://github.com/JuliaInterop/Cxx.jl.git"
uuid = "a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2"
version = "0.4.0"

[[InteractiveUtils]]
deps = ["Markdown"]
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

[[Libdl]]
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[[Logging]]
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"

[[Markdown]]
deps = ["Base64"]
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"

[[REPL]]
deps = ["InteractiveUtils", "Markdown", "Sockets"]
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"

[[SHA]]
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"

[[Sockets]]
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"

src/JTNL/Project.toml

0 → 100644
+7 −0
Original line number Diff line number Diff line
name = "JTNL"
uuid = "5186d3b0-d713-4f6d-b5a3-bd0d509d87fa"
authors = ["Tomáš Oberhuber <oberhuber.tomas@gmail.com>"]
version = "0.1.0"

[deps]
Cxx = "a0b5b9ef-44b7-5148-a2d1-f6db19f3c3d2"
+9 −0
Original line number Diff line number Diff line
cxx""" #include<TNL/Containers/Array.h>"""

struct Array{ Value, Device, Index }
   array = @cxxnew TNL::Containers::Array()
end

function setSize( Array array, Int size )
   cxx"""array.array.setSize( size )
end
 No newline at end of file
+6 −0
Original line number Diff line number Diff line
cxx"" #include<TNL/Devices/Host.h> ""

struct Host
end

src/JTNL/src/JTNL.jl

0 → 100644
+31 −0
Original line number Diff line number Diff line
module JTNL

using Cxx
#Cxx.addHeaderDir("/home/oberhuber/workspace/tnl-julia/src", kind = C_System)
#Cxx.addHeaderDir("/home/oberhuber/tmp/jtnl", kind = C_System)

#include("Devices/Host.jl")
#include("Containers/Array.jl")

#cxx""" #include<hello.h> """
#cxx""" #include<TNL/Timer.h>"""

cxx"""
#include <iostream>
class Hello
{
   //Hello()
   //{
   //   std::cerr << "HELOOOOO" << std::endl;
   //};
};
"""

function testJtnl()
   hi = @cxxnew Hello()
   #timer = @cxxnew TNL::Timer()
   #Array.a
   #setSize( a, 10 )
end

end # module
Loading